]> git.saurik.com Git - apt.git/commit - apt-pkg/pkgcachegen.cc
pkgcachegen: Use std::unordered_map instead of std::map
authorJulian Andres Klode <jak@debian.org>
Sun, 27 Dec 2015 00:33:38 +0000 (01:33 +0100)
committerJulian Andres Klode <jak@debian.org>
Sun, 27 Dec 2015 00:46:06 +0000 (01:46 +0100)
commite9185eca390435b4060ef26c7c69d39f994da7a7
treed77ecc772e65180b9ff0bad0a5a6961b7e60d426
parent74dedb4ae28fd4f7c89bf769708d4f7edc7ed79a
pkgcachegen: Use std::unordered_map instead of std::map

std::unordered_map is faster than std::map in our use case,
reducing cache generation time by about 10% in my benchmark.
apt-pkg/pkgcachegen.cc
apt-pkg/pkgcachegen.h