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

Implement special conversions for 64-bit integers #178

Merged
merged 4 commits into from
Jan 1, 2021

Conversation

mrkn
Copy link
Member

@mrkn mrkn commented Dec 31, 2020

This change improves the conversion speed from small integers.

Comparison:
                           big_n9
              master:   4003688.9 i/s
    bigdecimal 3.0.0:   1270551.0 i/s - 3.15x  slower

                          big_n19
              master:   5410096.4 i/s
    bigdecimal 3.0.0:   1000250.3 i/s - 5.41x  slower

@mrkn mrkn force-pushed the conversion_from_small_integers branch 11 times, most recently from b2483e7 to 8f4318f Compare January 1, 2021 05:20
This change improves the conversion speed from small integers.

```
Comparison:
                           big_n9
              master:   4003688.9 i/s
    bigdecimal 3.0.0:   1270551.0 i/s - 3.15x  slower

                          big_n19
              master:   5410096.4 i/s
    bigdecimal 3.0.0:   1000250.3 i/s - 5.41x  slower
```
@mrkn mrkn force-pushed the conversion_from_small_integers branch from 8f4318f to 3429bd7 Compare January 1, 2021 06:37
Ruby 2.4 does not have RbConfig::LIMITS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant