From: "Weirich, James" Date: 2004-01-15T01:10:56+09:00 Subject: Re: Converting a string to an array of tokens > From: nobu.nokada@softhome.net [mailto:nobu.nokada@softhome.net] > > In current Ruby, are the strings shared with COW semantics, or was > > Nobu just speculating on possible implementations? > > It has been implemented. Indeed. A quick little test shows that the time to execute ... While s s = s[1..-1] end Is linear w.r.t. string length. Excellent. I hadn't realized this before. -- -- Jim Weirich / Compuware -- FWP Capture Services -- Phone: 859-386-8855