From 5664bb2020530c0a8bbd0dc4c889743921b42429 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 27 Sep 2016 18:16:13 +0200 Subject: debListParser: Convert to use pkgTagSection::Key-based lookup This basically gets rid of 40-50% of the hash table lookups, making things a bit faster that way, and the profiles look far cleaner. --- apt-pkg/deb/deblistparser.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'apt-pkg/deb/deblistparser.h') diff --git a/apt-pkg/deb/deblistparser.h b/apt-pkg/deb/deblistparser.h index 102cd62aa..43ce0cfd3 100644 --- a/apt-pkg/deb/deblistparser.h +++ b/apt-pkg/deb/deblistparser.h @@ -52,10 +52,8 @@ class APT_HIDDEN debListParser : public pkgCacheListParser map_filesize_t iOffset; virtual bool ParseStatus(pkgCache::PkgIterator &Pkg,pkgCache::VerIterator &Ver); -#ifdef APT_PKG_EXPOSE_STRING_VIEW - bool ParseDepends(pkgCache::VerIterator &Ver, APT::StringView Tag, + bool ParseDepends(pkgCache::VerIterator &Ver, pkgTagSection::Key Key, unsigned int Type); -#endif bool ParseProvides(pkgCache::VerIterator &Ver); #ifdef APT_PKG_EXPOSE_STRING_VIEW -- cgit v1.2.3