Commit 66a6cc6
committed
Optimize ignore_list to use set and single iteration
This pr addressed the comment by Umago, to iterate docs
list once as opposed to twice. His suggestion also also
optimises for O(1) membership testing instead of list.
Changes:
- Convert ignore_list to ignore_set for faster lookups
- Single loop builds both docs_to_check and ignored_docs1 parent 224e727 commit 66a6cc6
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
701 | 702 | | |
702 | 703 | | |
703 | 704 | | |
| |||
0 commit comments