diff options
drw_text: improve performance when there's no match
this was the last piece of the puzzle, the case where we can't find any
font to draw the codepoint.
in such cases, we use XftFontMatch() which is INSANELY slow. but that's
not the real problem. the real problem was we were continuously trying
to match the same thing over and over again.
this patch introduces a small cache, which keeps track a couple
codepoints for which we know we won't find any matches.
with this, i can dump lots of emojies into dmenu where some of them
don't have any matching font, and still not have dmenu lag insanely or
FREEZE completely when scrolling up and down.
this also improves startup time, which will of course depend on the
system and all installed fonts; but on my system and test case i see the
following startup time drop:
before -> after
60ms -> 34ms
Diffstat (limited to '%25252525252525252525253fid%25252525252525252525253d5961876455676775b53dbcd2ff669b412450d3bb%252525252525252525253fid%252525252525252525253d2dcf2dc55a6d1cb550e1461c21ceaa9954e45047%2525252525252525253fid%2525252525252525253d2dcf2dc55a6d1cb550e1461c21ceaa9954e45047&id2%2525252525252525253d3c4f554528448355eb0e9f19269d19760f8b0dae%25252525252525253fid%25252525252525253d2dcf2dc55a6d1cb550e1461c21ceaa9954e45047&id2%25252525252525253d3c4f554528448355eb0e9f19269d19760f8b0dae%252525252525253fid%252525252525253d2dcf2dc55a6d1cb550e1461c21ceaa9954e45047%2525252525253fid%2525252525253d3c4f554528448355eb0e9f19269d19760f8b0dae%25252525253fid%25252525253d3c4f554528448355eb0e9f19269d19760f8b0dae%252525253fid%252525253de73651f12a406629778f02d8e5acbe2caec0dfc2%2525253fid%2525253d31fa07b9849b0ffbf4b7efb55943f466b3ff160f%25253fid%25253d6818e07291f3b2913e687c8ec3d3fe4711724050%253fid%253d6818e07291f3b2913e687c8ec3d3fe4711724050%3fid%3db43ec0577f2ad8ad33a0b893fe5360d966036786?id=22511c41d55a38a770541ae617a09383d5e6ad1c')
0 files changed, 0 insertions, 0 deletions