Memory management and optimisation in Ruby on Rails
Hi, This is Shubham Mishra from India, this is the part of Ruby on Rails exploration journey. In this post we will discuss about the ruby's some special concepts and I am sure you will get excited to make your hands dirty with those code, so why to wait let's get started... The process of allocating and releasing memory for variables and objects in a computer language is known as memory management. The garbage collector, which automatically releases memory that is no longer needed by programme objects, manages memory in the Ruby programming language. The mark-and-sweep algorithm is used by Ruby's garbage collector to decide which memory objects are still in use and which ones can be released. The method searches through every memory object and flags it as "live" if the programme is currently using it. If an object is not designated as "live," it is then treated as garbage and released from memory. Because inefficient memory utilisation can caus...