-
Notifications
You must be signed in to change notification settings - Fork 81
Open
Description
Hello,
I have a performance issue with large amounts of text. That is to say, hundreds and thousands of labels on a large whiteboard. While investigating the performance of RichTextKit, I found out that caching of SKPaint objects and reusing them between draw iterations saves up to 50% of render time. I run it on macOS and also in blazor wasm.
At the moment, all SK* resources are created on the fly and disposed right away.
https://github.com/toptensoftware/RichTextKit/blob/beb262ed21087b1600837a56336900f2c24f3b3a/Topten.RichTextKit/FontRun.cs#L604C1-L605C50
Is there a chance they could be cached?
Regards,
Andrey
nor0x
Metadata
Metadata
Assignees
Labels
No labels