RubyGems.org

On large results of ActiveRecord queries, instanciation + GC of objects has a real cost of allocating memory, setting values, and after all GC garbage ... Inside a without_instanciation block, data is returned as hash of values. Objects instanciation process id skipped and though GC of theses objects too. Performance up to 80% for large query result. Of course, you no longer work with Ruby AR objects in this block.

installgem install without_instanciation
Authors

Philippe Cantin

919 total downloads 919 for this version
Owners

4f399ff54aa7e90535716f6c5120897a

Gemfile
gem 'without_instanciation', '~> 1.0.0'
Versions
  1. 1.0.0 February 28, 2012 (10.5 KB)
Development Dependencies
  1. enginex >= 0
  2. sqlite3 >= 0