Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit f7ddfe1

Browse files
authored
Speed up @cachedList (#13591)
This speeds things up by ~2x. The vast majority of the time is now spent in `LruCache` moving things around the linked lists. We do this via two things: 1. Don't create a deferred per-key during bulk set operations in `DeferredCache`. Instead, only create them if a subsequent caller asks for the key. 2. Add a bulk lookup API to `DeferredCache` rather than use a loop.
1 parent 05c9c73 commit f7ddfe1

File tree

4 files changed

+298
-141
lines changed

4 files changed

+298
-141
lines changed

changelog.d/13591.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Improve performance of `@cachedList`.

0 commit comments

Comments
 (0)