[all-commits] [llvm/llvm-project] 9a6a0d: [lldb] make ConstStringTable use DenseMap rather t...

Luboš Luňák via All-commits all-commits at lists.llvm.org
Mon Apr 4 09:47:29 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9a6a0dfa06a5acd01f6b55f8a1ba9f0f5109e02c
      https://github.com/llvm/llvm-project/commit/9a6a0dfa06a5acd01f6b55f8a1ba9f0f5109e02c
  Author: Luboš Luňák <l.lunak at centrum.cz>
  Date:   2022-04-04 (Mon, 04 Apr 2022)

  Changed paths:
    M lldb/include/lldb/Core/DataFileCache.h

  Log Message:
  -----------
  [lldb] make ConstStringTable use DenseMap rather than std::map

The ordering is not needed, and DenseMap is faster. I can measure
time spent in the SaveToCache() calls reduced to ~40% during LLDB
startup (and the total startup cost reduced to ~70%).

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




More information about the All-commits mailing list