ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/AIO.pm
(Generate patch)

Comparing IO-AIO/AIO.pm (file contents):
Revision 1.273 by root, Fri Jun 23 22:33:06 2017 UTC vs.
Revision 1.274 by root, Thu Sep 21 23:43:46 2017 UTC

2008This is a very bad function to use in interactive programs because it 2008This is a very bad function to use in interactive programs because it
2009blocks, and a bad way to reduce concurrency because it is inexact: Better 2009blocks, and a bad way to reduce concurrency because it is inexact: Better
2010use an C<aio_group> together with a feed callback. 2010use an C<aio_group> together with a feed callback.
2011 2011
2012Its main use is in scripts without an event loop - when you want to stat 2012Its main use is in scripts without an event loop - when you want to stat
2013a lot of files, you can write somehting like this: 2013a lot of files, you can write something like this:
2014 2014
2015 IO::AIO::max_outstanding 32; 2015 IO::AIO::max_outstanding 32;
2016 2016
2017 for my $path (...) { 2017 for my $path (...) {
2018 aio_stat $path , ...; 2018 aio_stat $path , ...;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines