Skip to content

pg-wire 0.2.0.0

Choose a tag to compare

@joshburgess joshburgess released this 25 May 19:09
· 1 commit to main since this release

Changed (breaking)

  • Replaced the per-connection prepared-statement cache with SIEVE (NSDI'24). In standalone microbenchmarks, SIEVE is 2.3-3.8x faster than the previous HashPSQ-based LRU across fill, hit-only, mixed, eviction-storm, uniform-random, and Zipf-skewed workloads.
  • Connection record fields changed: connStmtCache is now SieveCache ByteString ByteString (was IORef (HashPSQ ByteString Word64 ByteString)), and connStmtTick was removed (SIEVE doesn't need a monotonic tick).

Added

  • PgWire.Cache.Sieve.clear, capacity, and foldEntries for managing and inspecting the per-connection cache.

Removed

  • psqueues dependency.

Hackage