in reply to Re: 4k read buffer is too small
in thread 4k read buffer is too small

That code surprises me. I would have at least expected it to be equal to the page size. And that varies with architecture. On Alpha, for instance, it's 8K.

Replies are listed 'Best First'.
Re^3: 4k read buffer is too small
by Steve_p (Priest) on Jun 17, 2008 at 11:55 UTC
    It surprises me more that there's a magic number like that buried down in the core. It appears that you should be able to configure that in your own custom IO layer and set the size as big as you wish.
Re^3: 4k read buffer is too small
by voeckler (Sexton) on Jun 17, 2008 at 18:56 UTC

    ACK: I would have expected a getpagesize() call, since pages are often natural boundaries. Or at least a reference to a BUFSIZ that many stdio's define - which happens to be, after several indirections, come to 8k on my x86_64 Linux.