[Lldb-commits] [lldb] [LLDB] Initialize language categories as part of general initialization. (PR #223474)

via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 14 13:47:30 PDT 2026


cmtice wrote:

> Why would we not notice at startup but we would during variable lookup? Is the time to do these things marginal compared to the rest of the startup cost but significant compared to variable lookup work? Do you have any kind of numbers you can share? That would help us understand the tradeoff we'd be making with this change.

In my measurements, getting these language categories takes ~ 0.06 seconds.  A variable lookup that has to incorporate this time takes ~ 0.068 seconds. The same variable lookup, without having to take time to get these language categories, takes ~0.001 seconds.  So I doubt that 0.06 seconds is going to be really noticeable in overall LLDB startup times, but it is definitely noticeable in variable lookup times.

https://github.com/llvm/llvm-project/pull/223474


More information about the lldb-commits mailing list