From: Jeff Pritchard Date: 2006-06-27T00:17:36+09:00 Subject: Re: Regex Comparison Causing Massive Memory Usage I recently wondered about this situation. My strings were approx one order of magnitude smaller than what you have described, and I had no problem running multiple "fancy" regex's on them (mine were 'C' files). Everybody told me not to worry about it. They also mentioned that 'IO' and therefore 'file' classes have enumerator methods via mixin, so you can usually do all the same stuff directly to the file if you need to. jp Mike Harris wrote: > Has anyone run into a problem where a regex comparison against a very > large string causes memory usage to massively and rapidly spike > upwards. A string of length ~200000 causes memory usage to reach and > exceed 2 gigs within seconds, crashing the running program. > > I'm not looking to diagnose the problem (with this e-mail) or anything > like that, which is why I haven't provided details. Just curious if > others have run into this problem. -- Posted via http://www.ruby-forum.com/.