tarantool / cartridge-java

Tarantool Cartridge Java driver for Tarantool versions 1.10+ based on Netty framework
https://tarantool.io
Other
27 stars 11 forks source link

Optimize usage of the Netty's and MsgPack's buffers #438

Closed akudiyar closed 8 months ago

akudiyar commented 10 months ago

Previously we were creating a new buffer and MsgPack packer on each request. This resulted in dramatic overload of GC with short-lived byte arrays. The new approach tries to maximize reusing of these byte arrays.

akudiyar commented 8 months ago

The test changes were rewritten by subsequent updates unfortunately, will be added back in the upcoming PRs