Optimize selectClaimIsMine #7370

Merged
jessopb merged 1 commit from cherrypickselectforuri into master 2021-12-31 18:52:26 +01:00

1 commit

Author SHA1 Message Date
infinite-persistence
b4f24cabdb Optimize selectClaimIsMine
Frequently used; top in perf profile

Most of the time, you already have the claim object in the current context. `selectClaimIsMineForUri` will retrieve the claim again, which is wasteful, even if it is memoized (looking up the cache still takes time).

Break apart the logic and added the alternative `selectClaimIsMine` for faster lookup.
2021-12-28 16:12:29 -05:00