ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/maps/perl/map-prefetch.ext
(Generate patch)

Comparing deliantra/maps/perl/map-prefetch.ext (file contents):
Revision 1.2 by root, Mon Jun 26 15:41:44 2006 UTC vs.
Revision 1.3 by root, Mon Jun 26 15:43:24 2006 UTC

55 55
56 aio_open $path, O_RDONLY, 0, sub { 56 aio_open $path, O_RDONLY, 0, sub {
57 my ($fh) = @_ 57 my ($fh) = @_
58 or return; 58 or return;
59 aio_readahead $fh, 0, -s $fh, sub { 59 aio_readahead $fh, 0, -s $fh, sub {
60 my $stop = Time::HiRes::time; 60 my $time = Time::HiRes::time - $NOW;
61 warn "$path ", $stop-$NOW; 61 warn "LONG PREFETCH $path $time\n" if $time > 0.15;
62 }; 62 };
63 }; 63 };
64 } 64 }
65} 65}
66 66

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines