Closed tvt173 closed 2 years ago
Looks good, thanks!
thanks @heitzmann! looking forward to the next release with this patch. i see orders of magnitude speed improvement in development
hi @heitzmann , would it be possible to get a new release with this patch?
Sure!
thanks Lucas! -- obrigado
(conda too please!)
Removal of an item from a list at an arbitrary index in python is an O(N) operation. Repeatedly doing this over a list can be very costly, as is done in the current
remove_polygons()
function. This MR instead filters the existing list into a new list via a list comprehension, which is much faster in scenarios where there are many polygons to remove.