From: Peter Lacey Date: 2006-01-05T07:44:25+09:00 Subject: Re: Repost: singleton methods vs. class instance vars >> On Jan 4, 2006, at 5:18 PM, Ross Bamford wrote: >> Which, when called multiple times, may be faster than equivalent >> instance variable lookups. Maybe, but that's a lot of optimization for a little problem. These four active record methods (table_name, primary_key, etc.) can't be called so often that it becomes necessary to avoid the cost of dereferencing a variable. There's an article by _why the lucky stiff_ (http:// whytheluckystiff.net/articles/seeingMetaclassesClearly.html) that gets tantalizingly close to answering this question, but not close enough. At least not for me. _why, are you lurking? Any input? I dunno, maybe I'm looking for something that's not there, but I'd love to keep the discussion going for a bit, if I may. Pete