I have a heavily optimized JavaScript app, a highly interactive graph editor. I now started profiling it (using Chrome dev-tools) with massive amounts of data (thousands of shapes in the graph), and I’m encountering a previously unusual performance bottleneck, Hit Test. This takes up 65% of everything (!), remaining a monster bottleneck in my codebase. I know this is the