About Strings

Noel Grandin noel at peralex.com
Sun Mar 18 23:30:59 PDT 2012

On 2012-03-19 08:27, Lubos Lunak wrote:
> That said, I myself dislike the buffer class. I doubt its 
> preallocation is a significant requirement for good performance 
> (especially given it's only 16 characters). I

Even in Java, it's a code smell to allocate a StringBuffer object 
without specifying a pre-allocation size.

Might make a good EasyHack to go through the code and change the places 
that allocate OUStringBuffer to give them a reasonable initial size?

Regards, Noel Grandin

Disclaimer: http://www.peralex.com/disclaimer.html

More information about the LibreOffice mailing list