hkupty / penna

Opinionated SLF4J backend that logs natively to json
https://hkupty.github.io/penna/
MIT License
47 stars 3 forks source link

MDC: Replace internal implementation #83

Closed hkupty closed 6 months ago

hkupty commented 6 months ago

Replaces ring-buffer based object pool with a simple TreeMap-based implementation. This trades off a little bit of memory and performance (maybe) for a much better and simpler to reason about codebase.

If there's a better map implementation, we can use it through the new StringMap interface.

As a side effect, this ensures the ContextMap behaviour is sane now

fix #82