コレは素晴らしい、さすがすぎる 'jemalloc' gem: Inject jemalloc(3) into your Ruby app in 3 min - Mover
Hi, i've just released 'je' gem which gives instant performance improvements and memory reduction for most Ruby programs. The procedure is really easy: just install 'je' gem, and execute your program by 'bundle exec je', instead of 'bundle exec'. The underlying technology is jemalloc , the scalable and concurrent malloc(3) implementation. Why jemalloc? Ruby relies on malloc(3) for its internal memory allocation. That means using better malloc(3) implementation will boost your application performance, and also supress the memory usage. jemalloc is a malloc(3) implementation, originally developed by Jason Evans. jemalloc handles small object better than other allocators so usually gives better performance and memory usage to Ruby programs. jemalloc is also general purpose malloc(3) implementation, which rarely causes memory fragmentation issue for most of the programs. Redis...
Full article:
http://kzk9.net/je-gem-instant-perf-improvement-and-memor...