By the way, an update to the plan outlined in IRC:
* We no longer need to make the second binary-domination pass iterate by source package. The cache I added in branch-4 obviates it.
* There's probably still a bit of object-object querying while populating that cache (BPR→BPB) that we can probably speed up a bit more through bulk-loading.
* We probably also ought to bulk-fetch BPN.
* Raphaël's suggestion could do wonders for speeding up _sortPackages.
By the way, an update to the plan outlined in IRC:
* We no longer need to make the second binary-domination pass iterate by source package. The cache I added in branch-4 obviates it.
* There's probably still a bit of object-object querying while populating that cache (BPR→BPB) that we can probably speed up a bit more through bulk-loading.
* We probably also ought to bulk-fetch BPN.
* Raphaël's suggestion could do wonders for speeding up _sortPackages.