I came across a weirdly slow example of filtering a numpy array with boolean indices and wanted to get some explanation as to why it\'s happening, and how to speed it up.