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.
While NSCache is thread safe, that alone does not make
rendererForAttributes
thread safe. This experiment will add a lock torendererForAttributes
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.