From: "Peña, Botp" Date: 2007-09-19T18:27:12+09:00 Subject: Re: "ri intern" not working? On Behalf Of SpringFlowers AutumnMoon # by the way, sometimes ri is really slow. is there a way just # to build the index or speed up the search? do yourself a favor, use fastri (faster w more features) botp@pc4all:~$ time fri string#intern ---------------------------------------------------------- String#intern str.intern => symbol str.to_sym => symbol ------------------------------------------------------------------------ Returns the Symbol corresponding to str, creating the symbol if it did not previously exist. See Symbol#id2name. "Koala".intern #=> :Koala s = 'cat'.to_sym #=> :cat s == :cat #=> true s = '@cat'.to_sym #=> :@cat s == :@cat #=> true This can also be used to create symbols that cannot be represented using the :xxx notation. 'cat and dog'.to_sym #=> :"cat and dog" real 0m3.006s user 0m2.416s sys 0m0.200s botp@pc4all:~$ time qri string#intern <..snip..> real 0m3.036s user 0m2.792s sys 0m0.216s botp@pc4all:~$ time ri string#intern Bad argument: string#intern real 0m12.493s user 0m7.520s sys 0m1.356s ri is too slow and case sensitive. kind regards -botp