Re:Unintuitive Optimization for Performing Paths Union
by vg_head on Thursday January 02, 2025 @12:15PM
(#42576306)
I didn't get to simplify the code further unfortunately. I could have, but I was running very tight on time with other things. In fact the running-in-production-version is even worse than what I've posted, I just went with the what worked fast on the first try and moved on to something else immediately. But it can absolutely be improved further!
Also, it can be optimized to avoid temporary lists if that turns out to be a win.