Skip to content

parley: Implement caching of parley layouts#10830

Draft
tronical wants to merge 4 commits intomasterfrom
simon/text-cache
Draft

parley: Implement caching of parley layouts#10830
tronical wants to merge 4 commits intomasterfrom
simon/text-cache

Conversation

@tronical
Copy link
Member

@tronical tronical commented Feb 19, 2026

The result of shaping is cached in a per-renderer ItemCache. The cache
can't be used for the size hints needed for layouts (as the word break
changes as is used for shaping). The line breaking is also not re-used,
but nevertheless this should reduce the amount of time spent rendering
text.

cc #10087
cc #2306

The result of shaping is cached in a per-renderer ItemCache. The cache
can't be used for the size hints needed for layouts (as the word break
changes as is used for shaping). The line breaking is also not re-used,
but nevertheless this should reduce the amount of time spent rendering
text.

cc #10087
cc #2306
@tronical tronical changed the title WIP: Implement sharing of parley layouts parley: Implement caching of parley layouts Feb 19, 2026
tronical and others added 3 commits February 19, 2026 18:44
Instead of a Rc<RefCell<Option<>>> make it possible to obtain a RefMut from the ItemCache and use that in the guard instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments