[Libreoffice-bugs] [Bug 119993] Memory usage keeps increasing for every change in the column width

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Sep 22 12:09:55 UTC 2018


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

--- Comment #1 from Telesto <telesto at surfxs.nl> ---
Created attachment 145107
  --> https://bugs.documentfoundation.org/attachment.cgi?id=145107&action=edit
Bibisect log

Bisected to:

author  Miklos Vajna <vmiklos at collabora.co.uk>  2018-08-31 18:19:12 +0200
committer       Miklos Vajna <vmiklos at collabora.co.uk>  2018-09-03 09:13:32
+0200
commit  aeff83240c88435d11590f5e9c6fe9927a508c6a (patch)
tree    a3b918a7d3164ee428a4df39df7118a87618dfd9
parent  08b5048198d59441cb8033ed14cd17e68c943004 (diff)
sw: save more vcl layout calls in SwFntObj
This builds on top of commit 436b829f5b904d76039db0818cff5dedf1ae89f1
(sw: save one vcl layout call in SwFntObj::DrawText(), 2018-08-16), but
now layouts are shared not only inside SwFntObj::DrawText(), but also
between SwFntObj::GetTextSize() and SwFntObj::DrawText().

To get there, create an SwFntObj cache member that stores already
calculated vcl layouts. SwFntObj already derives from SwCacheObj, so no
need to explicitly expire this cache member.

Total number of GenericSalLayout::LayoutText() invocations go down from
8 to 5 with this when pressing a key in Writer.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=aeff83240c88435d11590f5e9c6fe9927a508c6a

-- 
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/20180922/36bddeca/attachment.html>


More information about the Libreoffice-bugs mailing list