Skip to content

v2.5.1

Compare
Choose a tag to compare
@bitfaster bitfaster released this 09 Jun 22:40
· 32 commits to main since this release
fb787c1

What's changed

  • Fix ConcurrentLfu time-based expiry policy failing to update the entry's expiry on read. Prior to this fix, expiry is only updated when the read buffer is processed (following a cache write, or when the read buffer is full).
  • Fix ConcurrentLru torn writes for large structs using SeqLock.
  • Fix torn writes for 64-bit current time on 32-bit platforms for ConcurrentLru AfterAccessPolicy and DiscretePolicy.
  • P/Invoke TickCount64 to evaluate current time for .NET Standard on Windows, Duration.SinceEpoch is 5x faster resulting in lower latency lookups for ConcurrentTLru/ConcurrentTLfu.
  • Use Stopwatch.GetTimestamp to evaluate current time on MacOS, Duration.SinceEpoch is about 20% faster resulting in slightly lower latency lookups for ConcurrentTLru/ConcurrentTLfu.

Full changelog: v2.5.0...v2.5.1