Replies: 1 comment
-
Thanks Wang Chao, I really do appreciate your suggestions. And changing the active edge list to some sort of binary tree would certainly be a consideration, but it's a bigger job than I'm prepared to consider in the short term. I've spent many months on Clipper2 and I'm looking forward to having a break, once I've tidied up remaining bugs and added one or two minor embellishments. Of course if you (or someone else) were to contribute a PR with this or other changes that demonstrated significant performance gains, of course I'd be keen to merge those into the library. Regarding your point 4, I don't know what a disjoint-set structure is, I'd have to look it up. But I'd be reluctant to do much more there (without a PR) unless changes could be easily implemented and performance gains had be demonstrated. |
Beta Was this translation helpful? Give feedback.
-
Hi, Angus and Clipper2 community,
After profiling the union operation of Clipper2/CPP using vtune, I found two hotspots in the operation. Here is my preliminary wrap-up about the findings for your information, hopefully some potential improvement plan can come out of discussion in this community:
case 1: overlapped horizontal rectangles
case 2: coedge fence-shape rectangles and i also posted a pr here
Some preliminary thoughts:
IsValidAelOrder
can be reducedGetMaximaPair
time can be reducedGetRealOutRec
can be reducedBeta Was this translation helpful? Give feedback.
All reactions