Skip to content

Add method to convert non-shared Collection/SourceCache to shared variants#541

Open
nicoburns wants to merge 1 commit intolinebender:mainfrom
nicoburns:make-shared
Open

Add method to convert non-shared Collection/SourceCache to shared variants#541
nicoburns wants to merge 1 commit intolinebender:mainfrom
nicoburns:make-shared

Conversation

@nicoburns
Copy link
Collaborator

This allows for opting in to sharing after construction. Which is useful when accepting an existing FontContext/Collection/SourceCache which you then want to "fan out" into thread-local shared clones.

Blitz is using the method on SourceCache, but is using non-shared Collections. But both methods are included in this PR for symmetry.

@nicoburns nicoburns force-pushed the make-shared branch 3 times, most recently from 5795bf4 to 3bbf724 Compare February 6, 2026 21:52
@nicoburns nicoburns requested a review from dfrg February 9, 2026 14:21
Signed-off-by: Nico Burns <nico@nicoburns.com>
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