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

Sha 256 checksum:

41c8e5840b880bdb7817476da40090e9d93f7af0fa541b0a6703ec753d707c94

Total downloads 1,091

For this version 1,091

Required Ruby Version: None

Licenses:

N/A

Gemfile:
= Copy to clipboard Copied!

install:
= Copy to clipboard Copied!

Links: