Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Re: How to process each byte in a binary file?

by kschwab (Priest)
on Aug 13, 2002 at 03:05 UTC ( #189694=note: print w/replies, xml ) Need Help??


in reply to Re: Re: How to process each byte in a binary file?
in thread How to process each byte in a binary file?

I added a test case for just using read(FILE,1) from a real file, and it's about the same speed as the unpack() on a string (for largish strings).

Of course, this leaves the file open the whole time..but it's wonderfully simple :) I also have a very expensive Netapp filer helping the speed with read-ahead and a huge cache..YMMV.

  • Comment on Re: Re: Re: How to process each byte in a binary file?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://189694]
help
Chatterbox?
[marinersk]: I've often marvelled over the past few decades at just how little it takes to mess me up with this spacial dependence thing. I wonder if I'm mildly autistic or something.
[Eily]: can't the nodelet be moved though? Maybe you could put one that doesn't change first ("Sections" or "Find Nodes" for example)
[Eily]: "Other Users" seems like a poor choice :P

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2017-05-29 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?