Potential font loading performance increase of >50%
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 840
- Forks
- 137
- Avg merge
- 4h 56m
- Merged PRs (30d)
- 1
Description
Forgive me if this is wrong information or unorthodox, but for my first Rust project i have been utilizing font_kit and plaqyed around a little with the loading approach.
I have a 2GB folder with ~5.5k fonts, which loads in roundabout 50 seconds with the current implementation. Using jwalk and it's processing capabilities to only keep the relevant files and distinguishing between single and collection types by their file extension managed to get it down to ~11s using Font::from_path to read the files.
If i did research correctly collections should use the ttc or otc extensions only, which would make this approach viable, if not i'll happily stand corrected.
Thanks for this library it's great :)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the current font-loading implementation and comparing it with the reported jwalk approach, using Font::from_path and TTC/OTC extension handling as the relevant entry points. Measure loading time against the reported ~50-second baseline on the 2GB, ~5.5k-font folder; done means a validated performance improvement without incorrect font classification.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- performance
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100