TextureGroup / Texture

Smooth asynchronous user interfaces for iOS apps.
https://texturegroup.org/
Other
8.02k stars 1.3k forks source link

[ASTextKitRenderer] Adding locking when accessing the text renderer cache #2075

Closed rcancro closed 1 year ago

rcancro commented 1 year ago

While NSCache is thread safe, that alone does not make rendererForAttributes thread safe. This experiment will add a lock to rendererForAttributes to see how that affects performance/stability. As second experiment will forego the cache altogether to validate that we are getting some value out of having a renderer cache.