https://bugs.freedesktop.org/show_bug.cgi?id=82854
Priority: medium
Bug ID: 82854
Assignee: [email protected]
Summary: speed up OutputDevice::GetDefaultFont
Severity: normal
Classification: Unclassified
OS: All
Reporter: [email protected]
Hardware: Other
Status: UNCONFIRMED
Version: 4.3.0.2 rc
Component: graphics stack
Product: LibreOffice
The callgrind profile in comment 20 of bug#79761 (load it in kcachegrind) shows
an unexpectedly high cost for:
vcl/source/outdev/font.cxx (OutputDevice::GetDefaultFont)
850m pcycles for 18k calls - 47m pcycles for each call - seems a lot for (what
looks like) a fairly innoculous method ;-)
Possibly we should be caching the result on the OutputDevice - I guess adding
some printfs might help there (?).
Quite probably we should be constructing strings more sensibly in
GetEnglishSearchFontName - 550m cycles or so [ 132k calls ]. Quite possibly we
could do the search without turning into an English search name with more
clevers (?).
Anyhow - worth someone having a poke to dig through that as an easy hack I
suspect. Caolan ( if you can restrain yourself from just fixing it ;-) - I'd
appreciate your advice as an easy hack mentor ;-)
Thanks !
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs