From: Aristarkh A Zagorodnikov Date: 2001-06-22T16:26:44+09:00 Subject: [ruby-talk:16753] Re: Symbols, and their use as hash keys > -----Original Message----- > From: Yukihiro Matsumoto [mailto:matz@zetabits.com] > Sent: Friday, June 22, 2001 11:08 AM > To: ruby-talk ML > Subject: [ruby-talk:16752] Re: Symbols, and their use as hash keys > > > Hi, > > In message "[ruby-talk:16751] Re: Symbols, and their use as hash keys" > on 01/06/22, "Aristarkh A Zagorodnikov" writes: > > |> Symbols are immediate numbers. We can compare them in one machine > |> operation, instead of byte by byte comparison like strings. > |Hehe ... I know this already ... but why they are _slower_ ? > > because "intern" is not free, I think. You called intern 10000 times > once for each symbol. The same stuff I did for string case, just not used them :) Aristarkh A Zagorodnikov, Lead Programmer, W3D Group http://www.w3d.ru /// xm@w3d.ru /// ICQ UIN 36987938