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.8 by root, Sun Jul 16 19:14:10 2006 UTC vs.
Revision 1.9 by root, Wed Aug 2 11:17:08 2006 UTC

2 2
3# this plug-in prefetches maps. everytime a player enters a map, 3# this plug-in prefetches maps. everytime a player enters a map,
4# it will asynchronously prefetch files from disk (it will not load them 4# it will asynchronously prefetch files from disk (it will not load them
5# into the server, but into the OS cache only). 5# into the server, but into the OS cache only).
6 6
7if (0) { #test#
7use Errno (); 8use Errno ();
8use Time::HiRes; 9use Time::HiRes;
9use Fcntl; 10use Fcntl;
10use IO::AIO; 11use IO::AIO;
11 12
149 }; 150 };
150 151
151 $prefetch->(); $prefetch->(); 152 $prefetch->(); $prefetch->();
152 }; 153 };
153}); 154});
155}
154 156
155 157
156 158

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines