ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf.pm
(Generate patch)

Comparing deliantra/server/lib/cf.pm (file contents):
Revision 1.433 by root, Sat May 10 22:38:52 2008 UTC vs.
Revision 1.434 by root, Thu May 29 03:27:37 2008 UTC

34use Storable (); 34use Storable ();
35 35
36use Coro (); 36use Coro ();
37use Coro::State; 37use Coro::State;
38use Coro::Handle; 38use Coro::Handle;
39use Coro::EV; 39use Coro::AnyEvent;
40use Coro::Timer; 40use Coro::Timer;
41use Coro::Signal; 41use Coro::Signal;
42use Coro::Semaphore; 42use Coro::Semaphore;
43use Coro::AnyEvent; 43use Coro::AnyEvent;
44use Coro::AIO; 44use Coro::AIO;
56use Time::HiRes; 56use Time::HiRes;
57use Compress::LZF; 57use Compress::LZF;
58use Digest::MD5 (); 58use Digest::MD5 ();
59 59
60AnyEvent::detect; 60AnyEvent::detect;
61
62IO::AIO::max_poll_reqs 1;#d#
61 63
62# configure various modules to our taste 64# configure various modules to our taste
63# 65#
64$Storable::canonical = 1; # reduce rsync transfers 66$Storable::canonical = 1; # reduce rsync transfers
65Coro::State::cctx_stacksize 256000; # 1-2MB stack, for deep recursions in maze generator 67Coro::State::cctx_stacksize 256000; # 1-2MB stack, for deep recursions in maze generator
3437 reload_config; 3439 reload_config;
3438 db_init; 3440 db_init;
3439 load_extensions; 3441 load_extensions;
3440 3442
3441 $Coro::current->prio (Coro::PRIO_MAX); # give the main loop max. priority 3443 $Coro::current->prio (Coro::PRIO_MAX); # give the main loop max. priority
3442 evthread_start IO::AIO::poll_fileno;
3443 } 3444 }
3444 3445
3445 EV::loop; 3446 EV::loop;
3446} 3447}
3447 3448
3829{ 3830{
3830 # configure IO::AIO 3831 # configure IO::AIO
3831 3832
3832 IO::AIO::min_parallel 8; 3833 IO::AIO::min_parallel 8;
3833 IO::AIO::max_poll_time $TICK * 0.1; 3834 IO::AIO::max_poll_time $TICK * 0.1;
3834 $AnyEvent::AIO::WATCHER->priority (1); 3835 #undef $AnyEvent::AIO::WATCHER;
3835} 3836}
3836 3837
3837my $_log_backtrace; 3838my $_log_backtrace;
3838 3839
3839sub _log_backtrace { 3840sub _log_backtrace {
3877# load additional modules 3878# load additional modules
3878use cf::pod; 3879use cf::pod;
3879 3880
3880END { cf::emergency_save } 3881END { cf::emergency_save }
3881 3882
3883evthread_start IO::AIO::poll_fileno;
3884
38821 38851
3883 3886

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines