• Julian Andres Klode's avatar
    apt.Cache: Avoid unneccessary double weakref checks for __getitem__ · 6319cd18
    Julian Andres Klode authored
    __getitem__ included an optimization to first check the weakref
    dictionary for the key. This optimized performance if __getitem__
    was called with a non-canonical name, like foo where foo:amd64 is
    the canonical name (the pretty full name).
    
    It, however, vastly decreased performance in the common case. We
    do the unification of packages using the canonical name in _rawpkg_to_pkg,
    so let's just drop this optimization.
    6319cd18
Name
Last commit
Last update
apt Loading commit data...
aptsources Loading commit data...
data/templates Loading commit data...
debian Loading commit data...
doc Loading commit data...
po Loading commit data...
python Loading commit data...
tests Loading commit data...
typehinting Loading commit data...
utils Loading commit data...
.gitlab-ci.yml Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
COPYING.GPL Loading commit data...
Dockerfile Loading commit data...
README.md Loading commit data...
TODO Loading commit data...
pre-build.sh Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...