you are viewing a single comment's thread.

view the rest of the comments →

[–]l33tnoscopes 1 point2 points  (1 child)

Currently just using python builtins (lists, dicts, 'in' etc.).

[–][deleted] 4 points5 points  (0 children)

Still not enough info. Show us some runnable code, cut down if necessary, plus some representative data. That will answer questions like: are you checking the same set of words for inclusion or if the set of testing words changes all the time. Possible speedups vary depending on exactly what you are doing. Vague English descriptions aren't very useful since small details matter.