>>>>> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes:

  DS> I would *really* like perl's I/O system to do async reads and
  DS> writes to disk files whenever possible. That'd let us get another
  DS> burst of speed in some spots, particularly when slurping through
  DS> files sequentially (which is what's done maybe 95% of the time).

i proposed some of that in my rfc47 (universal async i/o). at the perl
level you need a delivery interface as with events. internally i see it
being useful too for the speedup of sequential files. but how do you
know a file is sequential? most unix kernels do readahead blocks anyway
but if you seek, you waste that. maybe a file can be designated as
sequential with async readahead by extra arguments to a smarter
open. others have proposed a better OO open and i second that. these
async options can be added easily and not be in the way of newbies.

in any case async i/o is a big win and should be in p6. we need to
clarify it more.

uri

-- 
Uri Guttman  ---------  [EMAIL PROTECTED]  ----------  http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page  -----------  http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net  ----------  http://www.northernlight.com

Reply via email to