Skip to content

Repeated pair positioning lookups could probably be optimized #256

@valadaptive

Description

@valadaptive

When doing shaping+layout for the version of Ubuntu Light used in egui (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.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions