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.597 by root, Sun Nov 11 02:14:37 2012 UTC vs.
Revision 1.598 by root, Sun Nov 11 02:38:10 2012 UTC

58use BDB (); 58use BDB ();
59use Data::Dumper; 59use Data::Dumper;
60use Fcntl; 60use Fcntl;
61use YAML::XS (); 61use YAML::XS ();
62use IO::AIO (); 62use IO::AIO ();
63use Time::HiRes;
64use Compress::LZF; 63use Compress::LZF;
65use Digest::MD5 (); 64use Digest::MD5 ();
66 65
67AnyEvent::detect; 66AnyEvent::detect;
68 67
901 900
902 return db_get cache => "$id/data"; 901 return db_get cache => "$id/data";
903 } 902 }
904 } 903 }
905 904
906 my $t1 = Time::HiRes::time; 905 my $t1 = EV::time;
907 my $data = $process->(\@data); 906 my $data = $process->(\@data);
908 my $t2 = Time::HiRes::time; 907 my $t2 = EV::time;
909 908
910 info "cache: '$id' processed in ", $t2 - $t1, "s\n"; 909 info "cache: '$id' processed in ", $t2 - $t1, "s\n";
911 910
912 db_put cache => "$id/data", $data; 911 db_put cache => "$id/data", $data;
913 db_put cache => "$id/md5" , $md5; 912 db_put cache => "$id/md5" , $md5;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines