[Libreoffice] [PATCH] produce smaller .res files with the resource compiler
Andras Timar
timar74 at gmail.com
Mon Aug 22 10:02:08 PDT 2011
Hi Michael,
2011.08.01. 19:10 keltezéssel, Michael Meeks írta:
>
> I think this is more like what you want to be doing. We would
> want to remove the code that dumps this table in tools/ - it seems
> to be only enabled as DBG_UTIL - and (as you say) seems to be unused.
In fact I wanted to find these lines of code but I did not find them.
Thanks for the patch, it works nicely. I pushed it.
>
> Potentially, if we were a bit braver; we could (I guess)
> experiment with shrinking nRT's size down to sal_uInt16 (at least in the
> file format), and see if nId is really necessary in those headers - but
> perhaps I'm missing something there. No doubt it would be worth doing
> some fprintf goodness during an incremental re-build of all the resource
> files to work out what the scopes are there.
>
It would save only a few thousand bytes. I'll see, if it is an easy win.
> quite touchingly :-) I'd like to see the RSC_VERSIONCONTROL record
> completely expunged from the code (ideally) on both sides and the
> headers, completely gone.
I agree. :) We could get rid of a lot of useless code. But the index at
the end of res file also is of type RSC_VERSIONCONTROL and we need that.
Best regards,
Andras
More information about the LibreOffice
mailing list