Optimise encoding of GSON elements into HTTP client buffers

Description

Profiler data shows that we're being overwhelmed by buffer resizing needs of the various StringBuilder instances needed to build the JSON requests.

In particular the method org.hibernate.search.elasticsearch.util.impl.ElasticsearchClientUtils.toEntity(Gson, ElasticsearchRequest) seems very intensive, but can be optimised.

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Labels

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Critical
Configure