On Friday 07 April 2006 10:59 am, Ola Bini wrote:
> Hi
>
> Yes, that's actually a pretty good idea, to use it as a test case.
> Just try to scramble up a few K's or M's of data and run through it and see
> what happens.
>
> As for creating it all the time... Are we using Java regexps for this, btw?
> If we are, then it would make sense to compile a regexp the first time you
> find it and and then save
> it around somewhere for a while. Probably a space-limited Map with the
> regexp-string itself as key would probably do it. Not a very big thing to
> implement either, probably.

As I mentioned in my reply to Tom, I looked at cache them.  What I want to do, 
is cache in the regex node, but you have to watch out for regex's that do 
variable substitution.  And you have to be sure to include the 'flags' in the 
'regex identity'.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Jruby-devel mailing list
Jruby-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jruby-devel

Reply via email to