in reply to the case where regex seems to work slower

Wonder why does Ruby take 4 times as much memory in one case, and twice as much in the other? We know many things do come down to "space versus speed." Could have a lot to do with it, but how?
  • Comment on Re: the case where regex seems to work slower