3 ms·
A trivial speed optimisation for the python example would be to use sets instead of lists for e.g. change line 8 to: NOUNS = {l.strip().lower() for l in f}
by arocks 14y ago
A trivial speed optimisation for the python example would be to use sets instead of lists for e.g. change line 8 to:
NOUNS = {l.strip().lower() for l in f}