[all-commits] [llvm/llvm-project] 500c32: [lldb] Increase the rate at which ConstString's me...

Raphael Isemann via All-commits all-commits at lists.llvm.org
Mon Feb 3 01:59:55 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 500c324fa13eec2b171f4ea4dbed2ac1251f5aae
      https://github.com/llvm/llvm-project/commit/500c324fa13eec2b171f4ea4dbed2ac1251f5aae
  Author: Raphael Isemann <teemperor at gmail.com>
  Date:   2020-02-03 (Mon, 03 Feb 2020)

  Changed paths:
    M lldb/source/Utility/ConstString.cpp

  Log Message:
  -----------
  [lldb] Increase the rate at which ConstString's memory allocator scales the memory chunks it allocates

Summary:
We currently do far more malloc calls than necessary in the ConstString BumpPtrAllocator. This is due to the 256 BumpPtrAllocators
our ConstString implementation uses internally which end up all just receiving a small share of the total allocated memory
and therefore keep allocating memory in small chunks for far too long. This patch fixes this by increasing the rate at which we increase the
memory chunk size so that our collection of BumpPtrAllocators behaves in total similar to a single BumpPtrAllocator.

Reviewers: llunak

Reviewed By: llunak

Subscribers: abidh, JDevlieghere, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D71699




More information about the All-commits mailing list