Skip to content

extension/apmconfigextension/v0.3.0

Latest
Compare
Choose a tag to compare
@rogercoll rogercoll released this 20 Jun 09:33
· 1 commit to main since this release
ba464a4
[extension/apmconfig]: replace sync.Map with freelru (#629)

* feat: replace sync.Map for freelru

* test: add freelru test cases

* replace fnv hash function with xxh

benchmarking results when hashing a UUID v7:
BenchmarkHashString_FNV1A-20                            36.27 ns/op
BenchmarkHashString_XXHASH-20                           15.04 ns/op

* set cache capacity to 1024 (2^N)

* feat: make cache config configurable

* fix: set default cache config in integration tests

* feat: purge expired cache based on ttl