BitFaster.Caching icon indicating copy to clipboard operation
BitFaster.Caching copied to clipboard

provide a net9 build target

Open bitfaster opened this issue 1 year ago • 1 comments
trafficstars

  • Use new System.Threading.Lock type in ConcurrentLfuCore. Benchmark shows Lock.TryEnter is faster.
  • POC of TryGetAlternateCache for string keys, see https://github.com/dotnet/runtime/issues/27229
    • The lookup is accessed by the GetAlternateLookup extension method
    • Note, IAlternateEqualityComparer can create the original T from the alternate, so we can allocate strings only for cache miss and pass into event handlers etc.
  • TODO: net9 specific unit tests (replace net core 3.1)

bitfaster avatar Nov 17 '24 05:11 bitfaster