Skip to content

Clipper1 performance vs Clipper2 #760

Answered by ErikSom
ErikSom asked this question in Q&A
Discussion options

You must be logged in to vote

@AngusJohnson I have figured it out and am finally seeing the improvements :) I was comparing IntersectD with an intersect64, there is the overhead of transforming the doubles to ints. The new results here:

clipper1 Intersection EvenOdd 5000 ops 5000 points: 2898.5 ms
clipper2 Intersection EvenOdd 5000 ops 5000 points: 2061.5 ms
28.88% improvement

clipper1 Union EvenOdd 5000 ops 5000 points: 3812.699999988079 ms
clipper2 Union EvenOdd 5000 ops 5000 points: 3094.800000011921 ms
18.83% improvement

clipper1 Difference EvenOdd 5000 ops 5000 points: 3291 ms
clipper2 Difference EvenOdd 5000 ops 5000 points: 2554.699999988079 ms
22.37% improvement

clipper1 Xor EvenOdd 5000 ops 5000 points: 40…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@ErikSom
Comment options

@ErikSom
Comment options

@ErikSom
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ErikSom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants