Do you think the Perl gods will make a buffer setting function available again in PerlIO?
I can't really speak for the Perl gods, but considering that the
configurability of the buffer size currently is near the lowest conceivable
level1, I'd think that making it user-settable (à la setvbuf with stdio)
isn't prioritized very high at the moment.
You might want to bring the issue up on p5p, however... if you feel determined and
are well prepared with good arguments :) — I do remember having
come across a related discussion (last time I felt like needing
setvbuf myself), but unfortunately, I can't find it at the
moment2. I recall I did sense some reluctance to change
in the overall tone of the thread...
___
1 "configurability levels" that I could think of:
- (1) hardcoded magic constant in the code
- (2) macro/constant (system-dependent) automatically determined during configure
- (3) compile-time configure option
- (4) user-configurable global runtime option affecting all buffers (switch, env-var, magic Perl var, whatever)
- (5) user-configurable runtime option per IO handle (like setvbuf)
- (6) user-configurable runtime option per PerlIO layer
- (7) like (6), but dynamically reconfigurable on open/unflushed handles
2 googling the p5p archives - i.e. 'setvbuf site:www.xray.mpe.mpg.de' -
doesn't produce any hits, although there are definitely
some
mentions of setvbuf (presumably some restrictive robots.txt file)
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.