Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-4718

Use tcmalloc's sized free interface for improved performance

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Consider using tc_free_sized to pass the size of blocks to free for common deallocations. This was introduced for C++14, where the compiler can include the size in delete operations in most cases, and it saves tcmalloc a potentially expensive lookup to figure out where a freed block should go.

      References
      tcmalloc interface: https://github.com/gperftools/gperftools/blob/master/src/gperftools/tcmalloc.h.in
      some background reading: http://expertmiami.blogspot.com/2018/08/about-c14-sized-delete-operator.html

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            michael.cahill@mongodb.com Michael Cahill (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: