Use a set to filter out seen items to avoid doing O(n^2) de-duplication. For very large hints, this can take considerable time. Using "seen_items" to build the actual hints on the (unverified) assumption that Python can do something "smart" to turn a set into a frozenset faster than it can with a list. Signed-off-by: Niels Thykier <niels@thykier.net>debian
parent
72eb6af711
commit
843952d627
Loading…
Reference in new issue