eclipse-vertx / eclipse-vertx/vertx-sql-client

Introduce object pool to improve object allocation

Open
#1,172 0 comments 0 reactions 0 assignees View on GitHub
perf
Dominant language
Java
Stars
912
Forks
212
Avg merge
3d 18h
Merged PRs (30d)
4

Description

#### Describe the feature

We can introduce object pool to improve object allocation, we might directly use Netty [Recycler](https://netty.io/4.1/api/io/netty/util/Recycler.html).

#### 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.