Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Max 16384 bytes

by archfool (Monk)
on Jul 02, 2007 at 14:02 UTC ( [id://624450]=note: print w/replies, xml ) Need Help??


in reply to Max 16384 bytes

It looks like they're setting a 16K read buffer size if stat doesn't return one (i.e. it returns undef or 0 for element 11).

The more important issue is that whoever wrote this code did NOT comment their constants. Constants should always be commented so others know what they mean AND why they were chosen.

So, unfortunately for you, you'll never know WHY they chose 16K bytes as a buffer size. =shurg= Seems arbitrary to me... or it worked for THEIR OS.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://624450]
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-24 14:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found