Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Perl Hash Performance Hits Brick Wall!

by flexvault (Monsignor)
on Aug 22, 2015 at 09:27 UTC ( #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? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2022-05-22 18:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (81 votes). Check out past polls.

    Notices?