kanidm / concread

Concurrently Readable Data Structures for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reduce clones in arcache fn get

Firstyear opened this issue · comments

We currently rely on From in fn get for the arcache. This is so that on a cache hit we can put the key to the channel for metadata operations.

However, this could be very costly clone-wise, especially if the cache is densly populated. we should find a way to reduce the amount of cloning required here while still ensuring the correct behaviour of the cache.