RAM saving plugins

Thought I’d put in a plug for some plugins I noticed the other day.


slim attribute plugin
purports to ‘lazy load’ your AR attributes, so if you never use that
description, it never gets loaded. Looks nice.

http://blog.chak.org/tag/hash/
hash_extension plugin
Allows for you to retrieve hashes instead of instantiated AR modes.
Program.find_as_hashes(:first)

{:id => 4, :name => “fred”} # a hash–saves on RAM, speed is much
faster for creation and lookup, I’d imagine.

Cheers!
-R

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs