diff options
| author | Julian Andres Klode <jak@debian.org> | 2026-02-06 15:50:04 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2026-02-10 19:59:03 +0000 |
| commit | 42dab6a46748ac80f0217212932b74af1af94017 (patch) | |
| tree | 5faddf6e8312d7baa9cd06d97cf11470af0d53b1 /apt-pkg/cachefilter-patterns.h | |
| parent | 2e4cc2aebecac327c758965667643d36a02889e5 (diff) | |
solver3: Use constexpr and noexcept in most places
Aside from Clause, which initializes an std::vector
and an std::forward_list, which do not have constexpr
constructors in C++17, we can turn our inline functions
constexpr.
Using `constexpr` implies `inline`, so simplify that
accordingly where needed.
Adding noexcept to the function allows STL components
to utilize more optimized code paths.
Marking SameOrGroup as constexpr significantly improves
performance due to being in the hot path and it now being
inlined - removing branching by 10%.
iolveiolver
Diffstat (limited to 'apt-pkg/cachefilter-patterns.h')
0 files changed, 0 insertions, 0 deletions
