in reply to Slowdown when using Moose::Util::TypeConstraints with Regexp::Common

You could try to minimize the difference with:

=> where { /^$RE{zip}{US}{-extended => "allow"}$/o };

Here on linux with perl 5.10 it gives:

    Rate    A    B
A 2402/s   -- -22%
B 3080/s  28%   --

The original benchmarked as:

    Rate    A    B
A 1851/s   -- -39%
B 3024/s  63%   --
Best regards
  • Comment on Re: Slowdown when using Moose::Util::TypeConstraints with Regexp::Common
  • Download Code

Replies are listed 'Best First'.
Re^2: Slowdown when using Moose::Util::TypeConstraints with Regexp::Common
by Anonymous Monk on Sep 02, 2008 at 06:38 UTC