Hi there,

        So - following on from my analysis of string duplication at:

                http://go-oo.org/~michael/ustrings.ods

        Having blamed a chunk of this on configmgr - it turns out that some of
the space I thought was there, is actually in the filter code - where we
construct strings from ASCII a lot.

        Anyhow - since some nice macros had been used I could re-work this
fairly easily:

before:
41076K writable-private, 73560K readonly-private, and 14608K shared
41080K writable-private, 73560K readonly-private, and 14608K shared
41084K writable-private, 73560K readonly-private, and 14608K shared
after:
40936K writable-private, 73552K readonly-private, and 14608K shared
40812K writable-private, 73548K readonly-private, and 14608K shared
40924K writable-private, 73552K readonly-private, and 14608K shared

        ~ saving of ~150k or so (collecting a few of these up is worthwhile).
The code should also be faster :-)

        Simple patch filed at:

        http://www.openoffice.org/issues/show_bug.cgi?id=68929

        ustring counts before/after:

    107 ClipboardFormat
    107 DetectService
    107 Preferred
    107 URLPattern
    108 Extensions
    108 MediaType
    108 PreferredFilter
    164 FileFormatVersion
    165 FilterService
    165 TemplateName
    165 UIComponent
    166 Flags
    167 DocumentService
    173 Filter
    180 UserData
    210 en-US
    271 UINames
    275 cfg:string
    285 ItemDescriptorContainer
    301 Name
    351 Label
    355 HelpURL
    372 CommandURL
    548 UIName
    615 x-default
    704 Type
   1094 LabelType

after:

     60 IsVisible
     63 com.sun.star.drawing.DrawingDocument
     63 Regular
     64 Bold
     69 Factory
     71 Style
     72 $1
     72 $2
     72 $3
     72 com.sun.star.uno.XInterface
     78 void
     88 com.sun.star.i18n.Transliteration.l10n
     95 com.sun.star.text.TextDocument
    173 Filter
    210 en-US
    275 cfg:string
    278 UIName
    285 ItemDescriptorContainer
    351 Label
    355 HelpURL
    372 CommandURL
    541 Type
    615 x-default
   1094 LabelType

        HTH,

                Michael.

-- 
 [EMAIL PROTECTED]  <><, Pseudo Engineer, itinerant idiot


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

Reply via email to