Take advantage of c++14 sized delete facilities in tc_malloc

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code, Performance
    • None
    • Dev Tools 2019-02-25, Dev Tools 2019-03-11, Dev Tools 2019-03-25
    • 16
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Google reported substantial performance improvement by adopting sized delete.

       

      Tasks:

      • Ensure we are building tcmalloc in a way that enables sized delete
      • Ensure we are passing the c++ flags to tell the compiler to use it automatically where it can
      • Make sure all of the Document/Value allocations (including RCString) can use sized delete
        • May need to make second argument to RCString::operator new() a different type (currently size_t)
      • Find the best way to expose a sized free equivalent for code using malloc/relloc/free
        • Teach SharedBuffer to used sized free
        • Teach WiredTiger to use sized free for any allocations that know their own size (WT_UPDATE already identified as an important case)

            Assignee:
            Henrik Edin
            Reporter:
            Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: