Uploaded image for project: 'Hibernate Search'
  1. HSEARCH-2818

Optimise encoding of GSON elements into HTTP client buffers

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.8.0.CR1
    • Component/s: elasticsearch
    • Labels:

      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.

        Attachments

        1. After.png
          137 kB
          Sanne Grinovero
        2. Before.png
          118 kB
          Sanne Grinovero

          Issue links

            Activity

              People

              • Assignee:
                sanne Sanne Grinovero
                Reporter:
                sanne Sanne Grinovero
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: