Closed uncomputable closed 1 week ago
BasePattern::contains_all has O(n^2) asymptotics although there exists a O(n) algorithm.
https://github.com/BlockstreamResearch/simfony/pull/38#discussion_r1616357299
Instead you should construct a hashset of all the identifiers in self and then check that every item yielded from the iterator lands in the hashset.
BasePattern::contains_all has O(n^2) asymptotics although there exists a O(n) algorithm.
https://github.com/BlockstreamResearch/simfony/pull/38#discussion_r1616357299