summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcache.h
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:52:56 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:52:56 +0000
commitf9eec0e748c2e735980bf80445535d32f27f8301 (patch)
tree10a872793fd1833d751e5fd07f54d7a06a2df9bf /apt-pkg/pkgcache.h
parent06bba740f0085bcd6262cece62dcff266d8efe95 (diff)
performance tuning
Author: jgg Date: 1999-02-23 06:46:24 GMT performance tuning
Diffstat (limited to 'apt-pkg/pkgcache.h')
-rw-r--r--apt-pkg/pkgcache.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/apt-pkg/pkgcache.h b/apt-pkg/pkgcache.h
index 4e4bf0290..7628cebd9 100644
--- a/apt-pkg/pkgcache.h
+++ b/apt-pkg/pkgcache.h
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: pkgcache.h,v 1.17 1999/02/21 08:38:53 jgg Exp $
+// $Id: pkgcache.h,v 1.18 1999/02/23 06:46:24 jgg Exp $
/* ######################################################################
Cache - Structure definitions for the cache file
@@ -90,8 +90,8 @@ class pkgCache
string CacheFile;
MMap &Map;
- static unsigned long sHash(string S);
- static unsigned long sHash(const char *S);
+ unsigned long sHash(string S) const;
+ unsigned long sHash(const char *S) const;
public:
@@ -165,7 +165,7 @@ struct pkgCache::Header
DynamicMMap::Pool Pools[7];
// Rapid package name lookup
- __apt_ptrloc HashTable[2048];
+ __apt_ptrloc HashTable[2*1048];
bool CheckSizes(Header &Against) const;
Header();