summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/deblistparser.h
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-09-27 18:16:13 +0200
committerJulian Andres Klode <jak@debian.org>2016-11-22 22:57:46 +0100
commit5664bb2020530c0a8bbd0dc4c889743921b42429 (patch)
tree12634911ce877acf17265c16040e6d85f16f4132 /apt-pkg/deb/deblistparser.h
parentabfd07702c1bbc3ed489d015b43db58ab677af0c (diff)
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.
Diffstat (limited to 'apt-pkg/deb/deblistparser.h')
-rw-r--r--apt-pkg/deb/deblistparser.h4
1 files changed, 1 insertions, 3 deletions
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