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)