Possile Speed Increase #188
BarbourSmith
started this conversation in
Ideas
Replies: 3 comments
-
Very interesting! Note that you don't need to do the overlap check manually, you can do a The doc is here |
Beta Was this translation helpful? Give feedback.
0 replies
-
Oh, that's fantastic! Thanks for the tip! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Should I close this? I just wanted to propose the idea, I'm not really requesting anything 😁 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was just playing around with idea for how to speed up processing large batch jobs with .cut() and I discovered that checking if the bounding boxes overlap before performing a cut speeds things up about ~15%.
Something like:
Where checkIntersection is just a basic check if the bounds overlap like:
Maybe for a lot of use cases users just won't be cutting things that don't overlap, or maybe the extra complexity isn't worth it so no worries if it's not a change that seems generally worth making, I just wanted to throw that idea out there as something that I noticed 😀
Beta Was this translation helpful? Give feedback.
All reactions