From: Joey Date: 2006-07-23T16:10:23+09:00 Subject: Re: Symbols vs. strings as hash_keys - interchangeable or no ------=_Part_44196_11239228.1153638620303 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Yes, :symbols use less memory than "Strings", but HashWithIndifferentAccess(which lets you use either) is quite slow compared to a normal Hash. j`ey http://www.eachmapinject.com On 7/22/06, Wes Gamble wrote: > > Ezra, > > Is it done in Rails like this for performance reasons (I'm guessing > symbols may be slightly more lightweight than Strings)? > > Thanks, > Wes > > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_44196_11239228.1153638620303--