http://perlmonks.org/?node_id=692348 "4k read buffer is too small"
The best-documented answer these days is setvbuf as mentioned in the IO::Handle docs. However: "IO::Handle::setvbuf() is not available by default on Perls 5.8.0 and later" and indeed that's the case- it doesn't seem to be available on my Strawberry Perl 5.22, even if I open a handle with the ":stdio" layer.
Being able to adjust a filehandle's read-ahead buffer size is occasionally useful for some unusual scenarios. -> It would be great to provide a way to set the buffer size in IO::Handle with current Perl.
even if it isn't feasible to implement this feature request, there is now a layer module on CPAN that provides this- PerlIO::buffersize - perhaps that module could be mentioned alongside "setbuf" in the IO::Handle docs as an alternative.
Migrated from rt.perl.org#127805 (status was 'new')
Searchable as RT127805$
The text was updated successfully, but these errors were encountered: