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.434 by root, Thu May 29 03:27:37 2008 UTC vs.
Revision 1.435 by root, Thu May 29 03:33:20 2008 UTC

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#
63 61
64# configure various modules to our taste 62# configure various modules to our taste
65# 63#
66$Storable::canonical = 1; # reduce rsync transfers 64$Storable::canonical = 1; # reduce rsync transfers
67Coro::State::cctx_stacksize 256000; # 1-2MB stack, for deep recursions in maze generator 65Coro::State::cctx_stacksize 256000; # 1-2MB stack, for deep recursions in maze generator
3398} 3396}
3399 3397
3400sub init { 3398sub init {
3401 my $guard = freeze_mainloop; 3399 my $guard = freeze_mainloop;
3402 3400
3401 evthread_start IO::AIO::poll_fileno;
3402
3403 reload_resources; 3403 reload_resources;
3404} 3404}
3405 3405
3406sub reload_config { 3406sub reload_config {
3407 open my $fh, "<:utf8", "$CONFDIR/config" 3407 open my $fh, "<:utf8", "$CONFDIR/config"
3830{ 3830{
3831 # configure IO::AIO 3831 # configure IO::AIO
3832 3832
3833 IO::AIO::min_parallel 8; 3833 IO::AIO::min_parallel 8;
3834 IO::AIO::max_poll_time $TICK * 0.1; 3834 IO::AIO::max_poll_time $TICK * 0.1;
3835 #undef $AnyEvent::AIO::WATCHER; 3835 undef $AnyEvent::AIO::WATCHER;
3836} 3836}
3837 3837
3838my $_log_backtrace; 3838my $_log_backtrace;
3839 3839
3840sub _log_backtrace { 3840sub _log_backtrace {
3878# load additional modules 3878# load additional modules
3879use cf::pod; 3879use cf::pod;
3880 3880
3881END { cf::emergency_save } 3881END { cf::emergency_save }
3882 3882
3883evthread_start IO::AIO::poll_fileno;
3884
38851 38831
3886 3884

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines