summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib
diff options
context:
space:
mode:
authorAndreas Hartmetz <andreas@ixgreen.de>2019-06-10 14:39:04 +0200
committerAndreas Hartmetz <andreas@ixgreen.de>2019-07-06 19:55:02 +0200
commiteea99e1e8f3eb67fda35dd3a656fe9b5a9be84f2 (patch)
treebd94743a619725bc00c1b76add389baa3005ff30 /tests/auto/corelib
parent619b92385ead871d1a220bf4bed5a6d2dd09a4fc (diff)
Fontconfig font database: Short-circuit matching by filename
If the filename matches, no other matching is necessary. Fontconfig doesn't have a fast path for that, so implement one here. Fontconfig is unlikely to add that fast path, see here: https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/103 With -O1 builds of Qt and KDE stack, 358 fonts installed according to KDE systemsetting, on a Ryzen 1800X, startup time of kwrite decreases as following according to perf stat: msec task-clock: ~480 ms to ~455 ms cycles: ~1.73e9 to ~1.65e9 Change-Id: I630a80e4bed2647d5bbd95247005aab7d0cb0363 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tests/auto/corelib')
0 files changed, 0 insertions, 0 deletions