JAVA-6363Needs Triage

bson-kotlinx: per-structure decoder setup slows decoding by up to 2x

Two small changes make bson-kotlinx decoding 10 to 20% faster, and about 2x faster when {{kotlinx-serialization-json}} is on the classpath. * {{AbstractBsonDecoder}} rebuilds its element metadata for every structure. * The {{JsonBson*Decoder}} classes build a full {{Json}} instance for every structure, even when no {{JsonElement}} is decoded. The JSON case matters most: {{kotlinx-serialization-json}} is an optional dependency, but applications often have it through other libraries, and it

Affected Versions
Versions known to exhibit this issue
5.14.0
Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue
Kotlin
Labels
Tags and classification

No labels assigned.