You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@gemitoytp Maybe the problem isn't Ruby. I think it's something wrong with the BigDecimal gem. I was able to test with several versions of it, and the issue with allocating too many objects in memory started from version 3.1.2.
Check out the huge difference:
allocated memory by gem
-----------------------------------
7093916 bigdecimal-3.1.5
1229367 exonio/lib
340084 other
===============================================
allocated memory by gem
-----------------------------------
7093916 bigdecimal-3.1.4
1229367 exonio/lib
340084 other
===============================================
allocated memory by gem
-----------------------------------
7093916 bigdecimal-3.1.3
1229367 exonio/lib
340084 other
===============================================
allocated memory by gem
-----------------------------------
7093980 bigdecimal-3.1.2
1229367 exonio/lib
340084 other
===============================================
allocated memory by gem
-----------------------------------
83704 exonio/lib
54556 bigdecimal-3.1.1
240 other
Hi!
I have the following gist code:
https://gist.github.com/gemitoytp/eca40ae2c264f43cbebf96b6eb7338e4
If I use Ruby 3.1.4 is more fastest that Ruby 3.2.2 with exonio-0.7.0, check the following benchmark result:
Ruby 3.1.4
Ruby 3.2.2
I have an Apple M2 Pro with 16 GB of RAM
The text was updated successfully, but these errors were encountered: