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

Vector2: Remove superfluous _length attribute #78

Merged
merged 1 commit into from
Dec 7, 2018

Conversation

nbraud
Copy link
Collaborator

@nbraud nbraud commented Dec 6, 2018

It was used for memoizing length computations until #71.
I proved in a microbenchmark that the memoization was providing no benefit (as math.hypot isn't any slower than Python's reflection API, used to check if the value was already computed)

5224a2e removed its use
(for memoizing length computations)
@AstraLuma AstraLuma merged commit f860cd5 into ppb:master Dec 7, 2018
@AstraLuma
Copy link
Member

Oops thanks!

@nbraud nbraud deleted the length branch December 10, 2018 15:39
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.

2 participants