vertx-sql-client
vertx-sql-client copied to clipboard
Introduce object pool to improve object allocation
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.