Skip to content

Conversation

copybara-service[bot]
Copy link

Optimize multi_weakref_lru_cache.

  • Move multi_weakref_lru_cache into its own file. This avoids a circular dependency with tree_util and util.
  • Change it to use tree flattening, only unflattening on a cache miss.
  • Add support to the C++ weakref_lru_cache to support multiple weak arguments if provided as a tuple.

* Move multi_weakref_lru_cache into its own file. This avoids a circular dependency with tree_util and util.
* Change it to use tree flattening, only unflattening on a cache miss.
* Add support to the C++ weakref_lru_cache to support multiple weak arguments if provided as a tuple.

PiperOrigin-RevId: 819900806
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