4 ms·
Would the sync.Pool trick mentionned here: https://hypermode.com/blog/introducing-ristretto-high-perf-go-cache https://hypermode.com/blog/introducing-ristretto-
by rastignack 1y ago
Would the sync.Pool trick mentionned here: https://hypermode.com/blog/introducing-ristretto-high-perf-go-cache https://hypermode.com/blog/introducing-ristretto-high-perf-g... help ?
It’s lossy but might be a good compromise.
- sa46 1y agoIt might be. I've seen the trick pop up a few times: 1. https://puzpuzpuz.dev/thread-local-state-in-go-huh https://puzpuzpuz.dev/thread-local-state-in-go-huh 2. https://victoriametrics.com/blog/go-sync-pool/ https://victoriametrics.com/blog/go-sync-pool/ It's probably too complex for the Otel SDK, but I might give it a spin in my experimental tracing repo.