summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2005-05-20 04:39:44 +0000
committerdmcmahill <dmcmahill>2005-05-20 04:39:44 +0000
commitb7d57ad0a45a3cc54050f99a94a678a9851c9ef4 (patch)
treefe69afb5d6b9caf261039d1d97032e5962055008 /textproc
parent7306ad2e33e0a6959f0f82da88333cc5bd5f9113 (diff)
downloadpkgsrc-b7d57ad0a45a3cc54050f99a94a678a9851c9ef4.tar.gz
Rework how the lookup of binary packages in the cache is performed.
As data for a given binary package is loaded, increment a count stored with PKGPATH as the index. Then use a psuedo-multidimensional array with PKGPATH and the # as the index. This allows for much faster lookups and scales linearly with the number of packages. The old way scaled as the product of the number of pkgsrc entries and the total number of binary packages. Not a pretty value. This makes the actual README.html generation part run about 3x faster. Approach suggested by soda.
Diffstat (limited to 'textproc')
0 files changed, 0 insertions, 0 deletions