googlefonts / googlefonts/fontations

Compile times

Open
#1,249 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
827
Forks
76
Avg merge
22h 33m
Merged PRs (30d)
75

Description

I've just been looking into compile times for Blitz. And `read-fonts` (16.14s) and `skrifa` (9.61s) both stand out in the profile. This is for a release build:

![Image](https://github.com/user-attachments/assets/72553913-4430-4dc2-89e0-2756cd8e7247)

This mostly gets hidden by parallel compilation (the non-codegen times are not nearly so bad). And perhaps this is the only way to get the runtime performance and type safety of this crate. But nevertheless I though this should be tracked, and considered when implementing changes to these crates.

(note also the compile time for `ttf-parser` at the bottom of the screenshot - only 5.5s!)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the release-build compile profile described in the issue and inspect the reported read-fonts and skrifa times, with ttf-parser as the comparison point. The issue names no files or tests and gives no acceptance criteria, so completion would need to be defined before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
performance
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.