Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^3: better (faster) way of writing regexp

by ikegami (Pope)
on Dec 02, 2009 at 18:07 UTC ( #810632=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    use strict;
    use warnings;
    our $date = '20091202';
    my $results = cmpthese(-3, \%tests);
  2. or download this
    This is Perl 5.010000
               Rate  range repeat  isook unpack
    repeat 445365/s     7%     --    -1%   -41%
    isook  449974/s     8%     1%     --   -40%
    unpack 754290/s    81%    69%    68%     --

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://810632]
[moritz]: seems there's a size limit for hostenum, and the error message just sucks
[vrk]: None, other than the location of the error: auto/NetAddr/IP/
[vrk]: Aha, there's a reference to "bug report 82719" in NetAddr/'s sub _splitref.
[moritz]: wow, that's their idea of an "improved error message"
[moritz]: how about "This network is too large to enumerate all host addresses." or so?
[vrk]: Well, there's a call to notcontiguous() before the error, whose description is "counts the bit positions remaining in the mask when the rightmost '0's are removed"
[vrk]: Clear as mud!

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2017-04-25 07:44 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (449 votes). Check out past polls.