On Mon, Oct 1, 2012 at 9:05 AM, Stephan Bergmann <sbergman@redhat.com> wrote:
Note that in the common case of accessing (i.e., searching for, etc.) 7-bit
ASCII content in a string, regardless of whether it is internally
represented as UTF-8 or UTF-16, going via an operator[] interface that
operates directly on the string object's innards might be more efficient
than going via an iterator interface (which is, of course, necessary when
potentially accessing non-ASCII content).
otoh, if we never had a [] access anywhere, we could use utf-8 as a backend.
The space saving (memory and therefor d-cache pressure) and the
removal of the need to have 2 set of classes (one for SBCS and one for
UCS-2)
may actually be worth the exta cost in these cases (indexed access)
Norbert
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.