Re: Package Pool Proposal
Jason Gunthorpe wrote:
> On 21 Nov 1999, Guy Maor wrote:
>
> > I am going to implement something like this.
> >
> > The archive will look like this:
> > debian/dists/pool/{binary-arch,source}/x/package
> > x is the first letter of the filename. Note that packages are not
> > organized according to section in the archive, just filename.
>
> I would be tempted to say this should be improved:
>
> Wakko{jgg}~/work/dsync/build/bin#apt-cache dumpavail | grep -i ^Package |
> awk -- '{print substr($2,1,1)}' | sort | uniq --count | sort -n | tail
> 157 f
> 190 m
> 202 t
> 206 d
> 210 c
> 270 s
> 321 g
> 323 p
> 365 x
> 857 l
>
> That says we are looking at about 1/5 of the packages in a single
> direcotry (lib* basically)
If 857 is too big a number (I don't know that it is), make an
exeption for lib packages and take the first letter _after_ `lib':
# apt-cache dumpavail | grep -i ^Package | sed -e 's/ lib-/ /;s/ lib/ /' | \
awk -- '{print substr($2,1,1)}' | sort | uniq --count | sort -n
1 2
2 3
2 9
25 y
32 q
36 z
55 u
56 o
57 j
64 h
73 v
74 k
115 e
120 b
146 i
148 n
151 w
165 r
173 l
174 f
193 a
213 m
229 t
240 d
244 c
317 s
378 p
381 x
436 g
`g' now wins for GNU. No big surprise.
--
Peter Galbraith, research scientist <GalbraithP@dfo-mpo.gc.ca>
Maurice Lamontagne Institute, Department of Fisheries and Oceans Canada
P.O. Box 1000, Mont-Joli Qc, G5H 3Z4 Canada. 418-775-0852 FAX: 775-0546
6623'rd GNU/Linux user at the Counter - http://counter.li.org/
Reply to: