[Aptitude-devel] Experimental package and package_pool implementation

Daniel Burrows dburrows at debian.org
Mon Jul 26 11:46:22 UTC 2010


On Fri, Jul 16, 2010 at 06:44:44PM +0200, Piotr Galiszewski <piotr at galiszewski.pl> was heard to say:
> I have forgotten that this part of code is not used anywhere. Apt
> initialization is also missed. I will rebase this branch and will add
> code I used to get numbers. It is primitive but works ;)

  So, here are some numbers on my laptop:

    Vanilla code: 95 seconds
    With a custom hash function: 0.2 seconds

  I think the hash function is pretty clearly the problem.  I've
attached a patch showing how you'd do this in the context of the
broken-packages branch.

  Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pkgiterator-hash.patch
Type: text/x-diff
Size: 426 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/aptitude-devel/attachments/20100726/40eadc22/attachment.patch>


More information about the Aptitude-devel mailing list