From: Gavin Kistner Date: 2006-01-12T13:05:26+09:00 Subject: Re: Looking up properties and speed On Jan 11, 2006, at 5:08 PM, Jonathan Leighton wrote: > Is the situation the same in Ruby? Is there any speed difference > between > these: > > def foo > val = obj.prop > puts val > puts val > end > > def boo > puts obj.prop > puts obj.prop > end Even moreso. In Javascript it's a slowdown as the property resolution occurs. In Ruby, it's an entirely new method call.