diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2020-01-17 17:19:56 +0100 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2020-01-17 17:19:56 +0100 |
commit | 8dc1d3c4662e9009ed56483fd4254ee1154b6e23 (patch) | |
tree | 69d06108ae16899e7a655f1149fe757fc138dd18 /doc/libapt-pkg2_to_3.txt | |
parent | 25353dc6646e5b9fff55059a5c85183589cf472d (diff) |
mmap: Do not look for empty pool unless we need to
Given that we have a maximum of 12 pools, and much more
items to insert, it does not make sense to have two branches
in the hot path.
Move the search for an empty pool into the unlikely case
that no matching pool has been created yet - a condition
that is guaranteed to only happens up to 12 times.
Diffstat (limited to 'doc/libapt-pkg2_to_3.txt')
0 files changed, 0 insertions, 0 deletions