June 21, 2019

Ruby language upgrade improves garbage collection, pattern matching

Ruby 2.7, the latest upgrade of the Ruby programming language, is now in a preview release. Ruby 2.7 brings improvements in garbage collection, pattern matching, and REPL (read-eval-print-loop).

The general release is planned for December 2019. New in the Ruby preview release is compaction garbage collection, which is used to defragment a fragmented memory space. The GC.compact method compacts the objects in the heap so that fewer pages are used. Members of the Ruby development team explained that some multi-threaded Ruby programs may cause memory fragmentation, which leads to high memory utilization and speed degradation.

To read this article in full, please click here


Leave Comment


Your Name *
Your Email *
Your Website

Comment *