summaryrefslogtreecommitdiff
path: root/apt-pkg/cacheiterators.h
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2025-07-24 22:08:52 +0200
committerJulian Andres Klode <jak@debian.org>2025-08-26 11:49:18 +0000
commit6abcb32f7df63c64b88a4fef57d38e219d2b6b42 (patch)
tree2dafe4ab2d7965cf38effd7876fc9e5a8eae4803 /apt-pkg/cacheiterators.h
parent27a6bb49ea806e808bf6ebd849542bd32cf256c6 (diff)
debListParser: Cache `essential` and `myArch` more
Lookup these variables in the constructor once, rather than once per package. This requires a bit of care as debListParser::UsePackage() defaults to "all" for essential when unset, hence we simply change its == "all" comparisons to == "all" || .empty().# This removes any per-paragraph configuration lookups from the file parser. Also parse myArch from ParseProvides down to ParseDepends() as that call ended up causing it to query APT::Architecture *again* since the function we call is static. Together, the removed config lookups safe about 2.3% of cache generation runtime.
Diffstat (limited to 'apt-pkg/cacheiterators.h')
0 files changed, 0 insertions, 0 deletions