Re:Adding Concurrency to Rails Apps with Unicorn
by oelmekki on Wednesday February 27, 2013 @03:36AM
(#5291318)
I'm totally not in memory optimization, but I suppose an app memory size is directly proportional to its required gems' size ? Or is it in the contrary quite insignificant in runtime memory ?
Re:Adding Concurrency to Rails Apps with Unicorn
by tenderlove on Wednesday February 27, 2013 @12:17PM
(#5293466)
Ya, it's definitely related to the number of files required. There are other factors though, like whether methods are defined via eval vs define_method, string allocations from stuff like database tables / column names.
I've done some stuff with routes, but I feel there are other wins we could get. The good news is we have `ObjectSpace.memsize_of_all`:
What's cool is that in MRI we can get size of the instruction sequences too: Also we can see the delta between methods defined with eval vs define_method: :-)EDIT: stop saying "cool" so much. :-/