[Libreoffice-bugs] [Bug 133667] Memory usage increases with 20 MB style setting font change and closing the document doesn't free the memory

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Jun 13 21:40:43 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=133667

--- Comment #2 from Telesto <telesto at surfxs.nl> ---
(In reply to Buovjaga from comment #1)
> Bibisected with win 6.2 repo to
> https://git.libreoffice.org/core/+/
> aeff83240c88435d11590f5e9c6fe9927a508c6a%5E!/
> sw: save more vcl layout calls in SwFntObj
> 
> Adding Cc: to Miklos Vajna
> 
> Seems to me this could just be working as intended as it is about using a
> cache. Miklos will enlighten us.

There is surely a by design part.. And I'm not objecting again some memory
increase.. And it how useful/relevant the caching is depends on the different
area's of LibreOffice.. Caching of the main document/ caching when using multi
page view (separate?)/ Print preview/ Print/ PDF export 

However it's more the big picture: memory usage of PDF export is up from 88MB
to 261 MB while exporting and the 261 MB isn't released after finishing for
example (bug 133652). The layout cache is not the only cause; image handling
has a part in it too (starting from increasing to memory cache in 4.4.7.2 (?)
and 5.2?)  I'm not seeing any really noticeable benefit to it (except maybe
preventing the slowdown by Harfbuzz)

So for the record, i'm complaining about this specific commit. And not saying
it's should be called a "regression" in the technical developer sense, but it
is a regression compared to the past. So, in advance.. feel free to remove the
keyword (including see also's)

And yes, every memory bump can be explained by itself, but I don't like the
pattern/trend. Tablets/Ipads don't have endless memory available. 

Anyhow. Purging the unused part of the cache for an active document once in a
while wouldn't hurt (if possible,).. And not sure how the caching works.. PDF
export seems to trigger (separate?) round of catching? Should it not be shared
with main document or if not purged? And a purge on document close would be
nice too

For the record: not knowing anything about how everything is build together or
the inner workings of LibreOffice. I don't want to proof brokenness.. or point
my finger to to an certain developer..

I'm surely aware of the need of saving vcl layout calls. And yes, this is like
not something to fix straight away, I fear; so we end up at the madding $$$
topic

So where to shave, what to shave, how to shave some memory usage(cheese)off, ..
I don't care.. But needs a cut, IMHO. [Awful expression of the Dutch figure of
speech: 'de kaasschaafmethode gebruiken'. Essence: Cuts across the board]

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200613/d30133f6/attachment.htm>


More information about the Libreoffice-bugs mailing list