harfbuzz / harfbuzz/harfrust

Repeated pair positioning lookups could probably be optimized

Open
#256 9 comments 0 reactions 1 assignee Claimed by @dfrg View on GitHub
Dominant language
Rust
Stars
301
Forks
26
Avg merge
10h 11m
Merged PRs (30d)
43

Description

When doing shaping+layout for the version of Ubuntu Light used in egui ([Ubuntu-Light.ttf.zip](https://github.com/user-attachments/files/22253093/Ubuntu-Light.ttf.zip)), I noticed that we're spending a lot of time in `pair_pos2_cached` (20-30% of the shaping time!):

Image

[Here's the samply profile.](https://github.com/user-attachments/files/22253171/profile.json.gz)

It seems that we re-parse the pair positioning table once per pair. Are we preparsing and caching these yet?

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.