kanidm / concread

Concurrently Readable Data Structures for Rust
Mozilla Public License 2.0
343 stars 15 forks source link

Reduce clones in arcache fn get #42

Closed Firstyear closed 4 years ago

Firstyear commented 4 years ago

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.