Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added small optimization to Polygon 'contains' method #1086

Merged
merged 1 commit into from
Jun 9, 2021

Conversation

Adolio
Copy link
Contributor

@Adolio Adolio commented Jun 8, 2021

Hi @PrimaryFeather!

Adobe Scout reported me that quite a lot of time was spent in the numVertices accessor while using the contains method.

What do you think about this small optimization? It seems to be used in few other similar methods too...

Best,
Aurélien

@PrimaryFeather PrimaryFeather merged commit d09d1e8 into Gamua:master Jun 9, 2021
@PrimaryFeather
Copy link
Contributor

That's a great find, Aurélien! This is definitely worth the change – it should have been like that all along.
Thanks a lot for the pull request! Merged right away. 😄

@Adolio Adolio deleted the polygon-opt branch January 5, 2022 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants