summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2005-05-20 04:39:44 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2005-05-20 04:39:44 +0000
commit69dfa5b1c23db1cf04fcfb214085c8929b6dfcbb (patch)
treefe69afb5d6b9caf261039d1d97032e5962055008 /textproc
parent62acf70ba6ce2581c6f8e2387b1f783a79bdb4d3 (diff)
downloadpkgsrc-69dfa5b1c23db1cf04fcfb214085c8929b6dfcbb.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