diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-08-18 21:55:58 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-02-22 08:27:16 -0500 |
commit | 8f15d1b320f1d859cc0a1a70c1de3c8092ba6b43 (patch) | |
tree | bbe63a1ab6988a3dc52ef0b2ca3bc06ff06cea06 /pango/pango-tabs.c | |
parent | 229975a376010b28b2e5d3b7699313a3b4910ca9 (diff) | |
download | pango-8f15d1b320f1d859cc0a1a70c1de3c8092ba6b43.tar.gz |
Move FcFontMatch and FcFontSort calls to a thread
fontconfig is thread-safe, so we can do calls that
can take several milliseconds to complete in a thread.
This patch does that for FcFontSetMatch and FcFontSetSort.
It is a win, at least for FcFontSetSort, since it
reduces the time that the main thread spends in
pango_fc_patterns_get_font_pattern for i > 0 from
around 10 to 6 milliseconds.
Diffstat (limited to 'pango/pango-tabs.c')
0 files changed, 0 insertions, 0 deletions