diff options
author | Pavel Labath <pavel@labath.sk> | 2024-06-03 10:34:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-03 10:34:44 +0200 |
commit | 763b96c86d81d51d0db430791a61fd1e8a406bce (patch) | |
tree | e5a7f1ba5b3f930a4363d535d5087e95c5afb348 /clang/lib/Basic/Module.cpp | |
parent | ce73e17e3ab5ccfa33a977843e82a9bbfb6b4ce3 (diff) | |
download | llvm-763b96c86d81d51d0db430791a61fd1e8a406bce.zip llvm-763b96c86d81d51d0db430791a61fd1e8a406bce.tar.gz llvm-763b96c86d81d51d0db430791a61fd1e8a406bce.tar.bz2 |
[lldb] Avoid (unlimited) GetNumChildren calls when printing values (#93946)
For some data formatters, even getting the number of children can be an
expensive operations (e.g., needing to walk a linked list to determine
the number of elements). This is then wasted work when we know we will
be printing only small number of them.
This patch replaces the calls to GetNumChildren (at least those on the
"frame var" path) with the calls to the capped version, passing the
value of `max-children-count` setting (plus one)
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions