[all-commits] [llvm/llvm-project] e8d3f0: [lldb][NFCI] Pre-allocate storage in ObjCLanguage:...

Alex via All-commits all-commits at lists.llvm.org
Thu May 18 16:23:35 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e8d3f061ba415e9f95739e0004fb75552d68df86
      https://github.com/llvm/llvm-project/commit/e8d3f061ba415e9f95739e0004fb75552d68df86
  Author: Alex Langford <alangford at apple.com>
  Date:   2023-05-18 (Thu, 18 May 2023)

  Changed paths:
    M lldb/source/Plugins/Language/ObjC/ObjCLanguage.cpp

  Log Message:
  -----------
  [lldb][NFCI] Pre-allocate storage in ObjCLanguage::MethodName::GetFullNameWithoutCategory

The size of a full ObjC MethodName can vary somewhat, but it is
computable ahead of time.

Using a reasonably sized ObjC application, this actually improves the
time it takes to initialize symbol indexes for ObjC names ever so
slightly. Additionally, I found that the variability in time also was
improved considerably.

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




More information about the All-commits mailing list