Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-58943

Use platform's aligned alloc in util/Buffer

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Major
    • None
    • None
    • storage-engine
    • 0

    Description

      Buffer allocates extra 4kb always irrespective of whether the memory we got was already aligned or not. DaveR suggests to use overloaded operator new which has been implemented in platform to leave it to jemalloc to figure this out. In case the memory allocated is already aligned to 4kb, we will save memory.

      See slack:

      https://couchbase.slack.com/archives/CDNGWKZ7D/p1696356526456259

       

       

      Attachments

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

        Activity

          People

            rohan.suri Rohan Suri
            rohan.suri Rohan Suri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty