3 ms·
This is a great post. I like how they walked through all the steps and especially the "perf" tool. Ruby has a patch to do the same thing -- increase sharing b
by chubot 10y ago
This is a great post. I like how they walked through all the steps and especially the "perf" tool.
Ruby has a patch to do the same thing -- increase sharing by moving reference counts out of the object itself:
Index here:
http://www.rubyenterpriseedition.com/faq.html#what_is_this http://www.rubyenterpriseedition.com/faq.html#what_is_this
First post in a long series:
http://izumi.plan99.net/blog/index.php/2007/07/25/making-rubys-garbage-collector-copy-on-write-friendly/ http://izumi.plan99.net/blog/index.php/2007/07/25/making-rub...
I think these patches or something similar may have made it into Ruby 2.0:
http://patshaughnessy.net/2012/3/23/why-you-should-be-excited-about-garbage-collection-in-ruby-2-0 http://patshaughnessy.net/2012/3/23/why-you-should-be-excite...
https://medium.com/@rcdexta/whats-the-deal-with-ruby-gc-and-copy-on-write-f5eddef21485#.10aa2bnnw https://medium.com/@rcdexta/whats-the-deal-with-ruby-gc-and-...
The Dalvik VM (now replaced by ART) also did this to run on phones with 64 MiB of memory:
https://www.youtube.com/watch?v=ptjedOZEXPM https://www.youtube.com/watch?v=ptjedOZEXPM
I think PHP might do it too. It feels like Python should be doing this as well.