diff options
author | Martin Robinson <mrobinson@igalia.com> | 2024-10-04 16:46:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-04 14:46:40 +0000 |
commit | 2234bc56a54c488d39762060b4dbd3e613c8174b (patch) | |
tree | 3c0fdb08fca0a5e1461e1d31dcc5cf919d5a1187 /components/script/dom | |
parent | ec05be6300075bcb9fb22df0c1eb941075e9d454 (diff) | |
download | servo-2234bc56a54c488d39762060b4dbd3e613c8174b.tar.gz servo-2234bc56a54c488d39762060b4dbd3e613c8174b.zip |
fonts: Eliminate overhead of first font instance creation (#33638)
The first font instance creation in the `SystemFontService` was
triggering fetching font keys, which added an approximately 1ms lag to
this operation. Doing this as soon as the `SystemFontService` thread is
spawned eliminates this lag.
In addition increase the size of the font key and font instance key
batch in order to avoid having to fetch new keys so frequently.
This change also adds profiling spans to the `SystemFontService` so it
is easier to see where it is spending its time when using perfetto.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/script/dom')
0 files changed, 0 insertions, 0 deletions