Jeffrey Schwab <jeff / schwabcenter.com> writes:

> hitesh.jasani / gmail.com wrote:
>> Actually if you flip it around as 'leagues & words.split' it turns out
>> to have some significant performance advantages in many cases.  See
>> http://www.jasani.org/articles/2006/02/28/adding-the-science-back-to-computer-science
>> for more details.
>
> I am surprised by the scan failures ("could not continue test").  Do
> you know what causes the error?

irb(main):002:0> Regexp.new "x"*600_000
RegexpError: regular expression too big: /xxxxx...

-- 
Christian Neukirchen  <chneukirchen / gmail.com>  http://chneukirchen.org