This should hypothetically be faster, as there are no insertions during the search, and the polygon stack is barely used during the search as well. This and some other optimizations should make the search stupidly fast.