Date: prev next · Thread: first prev next last
2017 Archives by date, by thread · List index


Hi Stephan

On 08/12/17 16:20, Stephan Bergmann wrote:
So, it would be interesting to know whether the issue indeed is mostly
with such rtl_uString instances, so that the mechanism I outlined above
would be going to sufficiently solve your issue.

That's why I mentioned that it is "potentially being available in Clang
or GCC even before; it already is, in a form almost usable for our
needs".  My assumption would be that we could get this at least into
dedicated Linux builds rather "soon-ish", with other builds gracefully
falling back to the status quo.

        Fair enough; so - the problem is working out where a string came from
after the fact is rather problematic ;-)

        I spent a while to create some code that scans for and dumps strings
and add it to loolmap:

SStrings      :                  50, 77 chars
UStrings      :               65021, 1053049 chars

        You can see a dump of all the things that look like ASCII strings in
memory here:

        http://users.freedesktop.org/~michael/strings.txt.gz

        Some clearly come from the code - but a lot look like they come from
the services.rdb and filter configuration, and a rather large number of
them look like they are from the officecfg. It gives some good hints for
where an additional 'intern()' or two might save quite some memory I
think; we have approaching 200kB of repetitions of 'com.sun.star' too,
6k lots of "en-US" etc. etc.

        Looking at that lot, I suspect that the pre-init allocator does indeed
make quite some sense, but have a poke & see what you think.

        ATB,

                Michael.

-- 
michael.meeks@collabora.com <><, Pseudo Engineer, itinerant idiot

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.