Memory Conscious Programming in Ruby
02-Nov-2017 2825
Ruby’s main built-in classes like TrueClass, FalseClass, NilClass, Integer, Float, Symbol, String, Array, Hash and Struct are highly optimized in terms of execution performance and memory usage. Note that I’m talking about CRuby (MRI) here and therefore most things will probably not apply to other Ruby implementations.Internally, i.e. in its C code, each object in Ruby is referenced via the VALUE type. This is a pointer to a C structure that holds all the necessary information.
Memory Conscious Programming in Ruby #ruby #rubydeveloper #rubyonrails #Memory #Conscious #Programming #programming https://rubyonrails.ba/link/memory-conscious-programming-in-ruby