RubyGems Navigation menu

without_instanciation 1.0.0

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.

Versions:

  1. 1.0.0 - February 28, 2012 (10.5 KB)

Development Dependencies:

Authors:

  • Philippe Cantin

Owners:

4f399ff54aa7e90535716f6c5120897a

Total downloads 967

For this version 967

Required Ruby Version: None

Licenses:

N/A

Gemfile:
gem 'without_instanciation', '~> 1.0.0' = Copy to clipboard Copied!

install:
gem install without_instanciation = Copy to clipboard Copied!

Links: