[Piuparts-devel] Bug#640648: TODO item “PackagesDB: get rid of 50% of unique() ”
Scott Schaefer
saschaefer at neurodiverse.org
Tue Sep 6 01:48:46 UTC 2011
Package: piuparts
Version: 0.41
Severity: wishlist
Tags: patch
Attached patch addresses TODO item in sbuject.
I chose to implement this by using the set type in place of a list and
unique(),
and then using set.pop() method in place of random.shuffle().
I also modified the class to no longer pass large "package" objects
around, but rather to just pass list/set of package names (since I
was "forced to", since you cannot add a non-hashable object to a
set). This required a new function to return package object, given
name as input. This required one change to piuparts-report.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pkgstates_type_set.patch
Type: text/x-patch
Size: 4749 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/piuparts-devel/attachments/20110905/793d5d26/attachment.bin>
More information about the Piuparts-devel
mailing list