Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-1140

Bucket#get (JsonObject) is allocating twice the memory for the document

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.5.2
    • 2.5.1
    • Core

    Description

      Motivation

      ----------

      When retrieving a document Bucket#get the netty buffer content is

      duplicated before the parsing by Jackson.

       

      Modifications

      -------------

      Wrap the ByteBuf in an inputstream. Jackson now directly parse the netty

      ByteBuf content

       

      Result

      ------

      Reduced memory allocations

      YMMV but in our test it was a ~10% reduction

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            daschl Michael Nitschinger
            benoit.wiart Benoit Wiart
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty