The threading workaround is reasonable, until you find the one element you're looking for, and Python has no support for killing the threads that keep looking for non-existent elements, and the CPU is pinned at 100%.
The threading workaround is reasonable, until you find the one element you're looking for, and Python has no support for killing the threads that keep looking for non-existent elements, and the CPU is pinned at 100%.