Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Hash Search is VERY slow

by choroba (Cardinal)
on Sep 28, 2021 at 21:50 UTC ( [id://11137098]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach (@list)
    
  2. or download this
    while (<>)
    
  3. or download this
    push @{ $ipURL{$ip} }, $url;
    
  4. or download this
    my ($ip, $url) = (split /,/)[7, 31];
    
  5. or download this
    perl -wE 'for (1..10000) {say join ",", map int rand 1000, 1..35}' > i
    +nput
    
  6. or download this
    #!/usr/bin/perl
    use strict;
    ...
        slow => sub { slow($FH) },
        fast => sub { fast($FH) },
    });
    
  7. or download this
    1..1
    ok 1 - same
           Rate slow fast
    slow 20.7/s   -- -26%
    fast 27.9/s  35%   --
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11137098]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-19 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found