In _collect_matching_tests, a lot of membership tests are done on a giant list of strings. By making it a set instead, we can make those much faster, and there's no reason for it to be a list. With ~45k tests and some 1000 expectations, this reduces the parse time from 34s to 3s on my machine.
Created attachment 301487 [details] Patch
Comment on attachment 301487 [details] Patch Clearing flags on attachment: 301487 Committed r212319: <http://trac.webkit.org/changeset/212319>
All reviewed patches have been landed. Closing bug.