KEMBAR78
Implement special conversions for 64-bit integers by mrkn · Pull Request #178 · ruby/bigdecimal · GitHub
Skip to content

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
mrkn added 2 commits January 1, 2021 16:00
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant