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

optimize slightly BigFloat(-NaN) #29128

Merged
merged 1 commit into from
Sep 16, 2018
Merged

optimize slightly BigFloat(-NaN) #29128

merged 1 commit into from
Sep 16, 2018

Conversation

rfourquet
Copy link
Member

This operation was allocating internally one unnecessary temporary
BigFloat object, doubling the construction time.

This is an utterly unimportant change, but it's hard for me to leave an unefficiency in the code when the fix is so simple. This touches directly the internal representation (z.sign), but I can change that to the library call if preferred (which I didn't see a problem with, despite what the deleted comment says).

This operation was allocating internally one unnecessary temporary
BigFloat object, doubling the construction time.
@rfourquet rfourquet added performance Must go faster bignums BigInt and BigFloat labels Sep 11, 2018
@rfourquet rfourquet merged commit ec44cf4 into master Sep 16, 2018
@rfourquet rfourquet deleted the rf/bigfloat-minus branch September 16, 2018 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bignums BigInt and BigFloat performance Must go faster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants