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: 134,647 of 193,553
Downloads: 4,773

Daily

Ranking: 47,914 of 193,540
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
279185,234,346sqlite3
19,79687,812enginex

Owners

#GravatarHandle
1iconanoiaque