Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Count byte/character occurrence (1/4)

by BrowserUk (Patriarch)
on Apr 01, 2016 at 11:12 UTC ( [id://1159271]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Count byte/character occurrence (1/4)
in thread Count byte/character occurrence (quickly)

What is the thinking behind the 100 byte excess?

A typo :) Now corrected. (Didn't make much difference in terms of speed; which surprises me.)


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^3: Count byte/character occurrence (1/4)

Replies are listed 'Best First'.
Re^4: Count byte/character occurrence (1/4)
by hippo (Bishop) on Apr 01, 2016 at 11:36 UTC

    That makes sense. For a 16MB file the script is only doing 1000 reads at 16K each. If each read is only reading one extra block and that extra block is always the consecutive one it probably should make only a small difference to the run time. Anyway, thanks for the clarification - thought I must have missed some clever trick.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-24 19:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found