The JSON polyfill allows us to encode json directly to a Vert.x Buffer, which would reduce the number of copies and generated garbage. It looks like this polyfill introduces a de-optimization on the native code, which ends up slowing down the serialization.
We need to investigate if the need for this encode to buffer / parse from buffer is worth in terms of performance versus not having it at all.
The JSON polyfill allows us to encode json directly to a Vert.x Buffer, which would reduce the number of copies and generated garbage. It looks like this polyfill introduces a de-optimization on the native code, which ends up slowing down the serialization.
We need to investigate if the need for this encode to buffer / parse from buffer is worth in terms of performance versus not having it at all.