Skip to content

[Bridge] UIColor cache fills up when animating colors #1533

@ide

Description

@ide

See #1513. The issue is that animating a color quickly fills up the color cache. We probably want to:

  • Cap the size of the cache and implement a policy like Least Frequently Used or segmented LRU
  • Change the caching policy when the color is animated (e.g. MRU, or don't cache at all. But if the animation repeats it could be helpful to have cached the values.)

cc @sahrens @nicklockwood @vjeux for thoughts

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions