Closed cowtowncoder closed 1 year ago
Ok, implemented. One less ThreadLocal
, things bit more isolated. But the next step is trickier, need to think it through -- ideally jackson-core
s BufferRecycler
and BufferRecyclerPool
could be used somehow but we'll see how that works.
Currently Smile format module uses
ThreadLocal
for buffer recycling, both for parser and generators. Although eventually it'd be good to make this pluggable, similar to work injackson-core
, it makes sense to start by refactoring to unify handling so it's driven bySmileFactory
and not by parser/generator classes.