Skip to content

Conversation

kjarosh
Copy link
Member

@kjarosh kjarosh commented Jul 10, 2025

This patch improves memory footprint by preventing fonts from being loaded eagerly into memory. Instead, it's possible to pass a file reference to a font, which will be used to load data from the font file when needed. This mechanism is used on desktop.

This patch also introduces a preloading mechanism, that makes sure we read from the font file once per a text fragment, and not for each glyph.

kjarosh added 2 commits July 10, 2025 17:39
This patch improves memory footprint by preventing fonts from being
loaded eagerly into memory. Instead, it's possible to pass a file
reference to a font, which will be used to load data from the font file
when needed. This mechanism is used on desktop.

This patch also introduces a preloading mechanism, that makes sure we
read from the font file once per a text fragment, and not for each
glyph.
@kjarosh kjarosh added A-desktop Area: Desktop Application T-perf Type: Performance Improvements labels Jul 10, 2025
@kjarosh kjarosh marked this pull request as draft July 11, 2025 12:34
@kjarosh
Copy link
Member Author

kjarosh commented Jul 11, 2025

Converted to draft, as I think using mmap will be a better solution

@kjarosh
Copy link
Member Author

kjarosh commented Jul 20, 2025

Closing in favor of #20969

@kjarosh kjarosh closed this Jul 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-desktop Area: Desktop Application T-perf Type: Performance Improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant