Categories: None [Edit]

without_instanciation

https://rubygems.org/gems/without_instanciation
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.

Total

Ranking: 136,389 of 197,051
Downloads: 4,857

Daily

Ranking: 67,605 of 197,010
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
285196,796,104sqlite3
20,18388,817enginex

Owners

#GravatarHandle
1iconanoiaque