jackson-dataformats-binary icon indicating copy to clipboard operation
jackson-dataformats-binary copied to clipboard

Use more efficient (in JDK 17) `String` construction wrt "Compact Strings" (for CBOR)

Open cowtowncoder opened this issue 1 month ago • 0 comments

A major reason Jackson codecs are faster on JDK 8 than 17 or above is the switch by JDK to use byte[] for Strings. For Jackson this is very bad thing because it already decodes Strings into char[]. With Jackson 3.0 baseline now is JDK 17 so maybe there are ways to figure out how to undo some damage, esp. for ASCII decoding loops.

cowtowncoder avatar Oct 26 '25 02:10 cowtowncoder