Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Perl Hash Performance Hits Brick Wall!

by flexvault (Monsignor)
on Aug 22, 2015 at 09:27 UTC ( [id://1139489]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Tiny, active code segment
    ...    
    ...
        $rgb=substr($buf, 0, 6, '');  # Nibble 6 bytes       
        $rgb2c{$rgb}++;    
    }
    
  2. or download this
        
    @rgb = keys %rgb2c;  << 1 line takes 28.648 min
    
  3. or download this
    my $fsize = -s [your file];   ## Find out how big the image is?
    my $arrsize = $fsize / 6;     ## Size of the array and hash
    ...
            $counter++;
        }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-03-29 09:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found