-
Notifications
You must be signed in to change notification settings - Fork 638
Improve performance of find_by_iso_numeric method #1147
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
Conversation
pranavbabu
commented
Jul 18, 2025
ruby 3.3.3 (2024-06-12 revision f1c7b6f435) [arm64-darwin23] Warming up -------------------------------------- Before optimization 2.135k i/100ms After optimization 55.681k i/100ms Calculating ------------------------------------- Before optimization 21.148k (± 0.8%) i/s (47.29 μs/i) - 106.750k in 5.048173s After optimization 549.315k (± 0.6%) i/s (1.82 μs/i) - 2.784M in 5.068425s Comparison: After optimization: 549314.7 i/s Before optimization: 21147.5 i/s - 25.98x slower
sunny
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice performance gains! 😍
|
Hi there @pranavbabu! Any idea when you can get to address the review comment? 🙏🏻 |
|
@sunny Hi! Thanks for reminding me, currently a bit overloaded on work, but I will definitely will look into that and another issue where you pinged me ;) I'm looking forward for all the changes that have been made to be released we rely on this gem a lot! |
|
No worries, thank you for your answer! Keeping this open for the time being then 👍🏻 |
check it out ;) |
sunny
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good ✨
Can you add an entry to the CHANGELOG as well? 🙏🏻