vertx-sql-client icon indicating copy to clipboard operation
vertx-sql-client copied to clipboard

Introduce object pool to improve object allocation

Open BillyYccc opened this issue 3 years ago • 0 comments

Describe the feature

We can introduce object pool to improve object allocation, we might directly use Netty Recycler.

Use cases

In our SQL Client implementations, CommandBase and CommandCodec are allocated whenever there's a command being scheduled, the simple queries or preparedQueries API callings will allocate a lot of new objects, we can use the Netty object pool to reduce such memory allocations to improve performance. I think all db implementations can be supported and will benefit from this change.

BillyYccc avatar Apr 01 '22 16:04 BillyYccc