This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make the buffer size for the perlio layer a macro.
authorCraig A. Berry <craigberry@mac.com>
Wed, 10 Nov 2010 02:20:12 +0000 (20:20 -0600)
committerCraig A. Berry <craigberry@mac.com>
Wed, 10 Nov 2010 04:09:42 +0000 (22:09 -0600)
commita3cbd8d01434fbac731fd3f88a8fc77b020787e1
treebbe8104d32cc7911d1b805f53f5a44af842d1665
parente198ad16b8e9d759aac5600f4a4964317fd90b90
Make the buffer size for the perlio layer a macro.

The 4K buffer size was chosen way back in bb9950b.  Significant performance
improvements are seen with larger buffer sizes, though the optimum size
likely varies by architecture and workload.  For starters, we'll leave the
default as-is but make the buffer size a macro and thus user-configurable via:

  sh Configure -Accflags=-DPERLIO_BUFSIZ=<number>

Choosing a better (larger) default is still TODO.
perlio.c
perlio.h