Mention what is the function of garbage collection in Ruby on Rails?

Technology CommunityCategory: Ruby on RailsMention what is the function of garbage collection in Ruby on Rails?
VietMX Staff asked 3 years ago

The functions of garbage collection in Ruby on Rails includes

  • It enables the removal of the pointer values which is left behind when the execution of the program ends
  • It frees the programmer from tracking the object that is being created dynamically on runtime
  • It gives the advantage of removing the inaccessible objects from the memory, and allows other processes to use the memory