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

Comparing deliantra/server/ext/map-random.ext (file contents):
Revision 1.33 by root, Sat Jun 6 21:43:13 2009 UTC vs.
Revision 1.35 by root, Sun Nov 8 22:28:10 2009 UTC

55 55
56 1 56 1
57} 57}
58 58
59sub clean_random_maps { 59sub clean_random_maps {
60 return;#d#
61 my $files = Coro::AIO::aio_readdirx $cf::RANDOMDIR, IO::AIO::READDIR_STAT_ORDER 60 my $files = Coro::AIO::aio_readdirx $cf::RANDOMDIR, IO::AIO::READDIR_STAT_ORDER
62 or return; 61 or return;
63 62
64 my $META_TIMEOUT = $cf::CFG{map_random_meta_timeout} || 86400 * 7; 63 my $META_TIMEOUT = $cf::CFG{map_random_meta_timeout} || 86400 * 7;
65 64
175 } 174 }
176 } 175 }
177 }; 176 };
178} 177}
179 178
179# save test
180if (0) {
181 cf::async {
182 # 0.58
183 Coro::Timer::sleep 2;
184 my $map = cf::map::find "/mlab/citydeclouds2";
185 $map->load_header;
186 $map->load;
187 $map->post_load_original;
188 my $m=100;
189 for (1..50) {
190 my $t=EV::time;
191 $map->_save_objects ("/tmp/x", cf::IO_HEADER | cf::IO_OBJECTS | cf::IO_UNIQUES);
192 $t = EV::time-$t;
193 $m=$t if $m>$t;
194 warn $m;
195 }
196 };
197}
198
1801 1991
181 200

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines