Efficient string concatenation

Lubos Lunak l.lunak at suse.cz
Mon Dec 3 07:46:49 PST 2012


On Monday 03 of December 2012, Caolán McNamara wrote:
> On Sun, 2012-12-02 at 22:59 -0600, Norbert Thiebaud wrote:
> > vaguely related... since we are talking about performance... why
> > *_new_WithLength() in strtmpl.cxx is doing a memset on the whole newly
> > allocated buffer...
>
> yeah, someone noticed that when writing i18npool/i18nutil and wrote a
> non-memsetting version which I moved into comphelper as
> rtl_uString_alloc/rtl_string_alloc

 But that doesn't make much sense, does it? What's the point of an internal 
string helper function in comphelper instead of sal?

-- 
 Lubos Lunak
 l.lunak at suse.cz


More information about the LibreOffice mailing list