googlefonts / googlefonts/fontc

Reading UFO glyphs is slow?

Open
#396 4 comments 0 reactions 1 assignee Claimed by @cmyr View on GitHub
performance
Dominant language
Rust
Stars
193
Forks
21
Avg merge
1d 20h
Merged PRs (30d)
60

Description

Flamegraph of a Google Sans builds reports `norad::glyph::Glyph::load (2,878 samples, 24.86%)`. This is apparently because parsing is hard work, `norad::glyph::parse::GlifParser::parse_body (2,682 samples, 23.16%)`.

![image](https://github.com/googlefonts/fontc/assets/6466432/cef01762-4d50-43c3-a04e-8ca3ac6d8532)

fontc will issue per-glyph reads from threads running GlyphIrWork so this should parallelize. Still, one has to wonder if this could be sped up.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.