in reply to fast string parser: regex versus substr

unpack, as the other monks have stated, is almost undoubtedly the way to go if your data is fixed-width.

It's a moot point, but your benchmarks may have been spurious since you didn't s/// whitespace in the doregex function like you did w/ dosubstr.

Hanlon's Razor - "Never attribute to malice that which can be adequately explained by stupidity"
  • Comment on Re: fast string parser: regex versus substr