Profiling Ruby’s Memory Allocation with TCmalloc
How does memory allocation work in Ruby? Ruby gets memory in chunks, called pages, new objects are saved here. Then… When these pages are full, more memory is needed. Ruby requests more memory from the operating system with the malloc function. This malloc function is part of the operating system itself, but there are alternative … Read more