Michael Meeks wrote:
Hi there,

        I was just looking at the list of strings, and - well - it seems there
are rather a lot that are related to the new framework / UI code [ most
likely ]. The bottom line is 130k wasted (plus ~substantial malloc
overhead).

cnt  name                           waste
                       7
uno:Undo
                     156
                       7
uno:ViewDataSourceBrowser
                     360
                       8
uno:AddDirect
                     252
                       8
uno:CharFontName
                     294
                       8
uno:HelpIndex
                     252
                       8
uno:InsertTable
                     280
                       8
uno:Zoom
                     182
                       9
uno:SubScript
                     288
                       9
uno:SuperScript
                     320
                      95
uno:
                    1692

        Full list: http://go-oo.org/~michael/framework-strs.ods

        It's not obvious off-hand where the duplicates come from ;-) perhaps
having a framework-global hash_set containing command names might be a
good idea (?)

Hi Michael,

Nice to see your work is going on. I think you're right that we need a framework-global hash_set for the commands. The duplicates, from my point of view, are clearly created by the XML reader stuff in the framework project. Every tool, menu and status bar which are read by the XML reader get a new string instance. Therefore I would recommend to extend the XML readers (framework/source/xml) to use the framework-global hash_set. I would guess this will remove most duplicates in your list.

Regards,
Carsten

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to