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

Re^2: Count byte/character occurrence (quickly)

by james28909 (Deacon)
on Apr 01, 2016 at 06:53 UTC ( [id://1159248]=note: print w/replies, xml ) Need Help??


in reply to Re: Count byte/character occurrence (quickly)
in thread Count byte/character occurrence (quickly)

Sadly, when I try to set it to a high(er) buffer size it slows down for some reason. I have an Intel i5 2500k and samsung 840 pro with a biostar tz77xe4 motherboard. It should be reading faster than heck. Is mine (or yours) code some how saving the results of the read instead of throwing them away after reading and adding to seen? I tried to undef $buf as well and that even slowed it down

EDIT: also, i am using perl 5.16.3 for certain reasons.

  • Comment on Re^2: Count byte/character occurrence (quickly)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1159248]
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: (3)
As of 2024-04-26 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found