gtonline服务器开发

来源:互联网 发布:图片生成器软件 编辑:程序博客网 时间:2024/09/21 09:23

一:GTONLINE开发

1. 在linux服务器上,测试写入数据到本地硬盘文件上和写入数据到(局域网)mysql数据库服务器上,各耗时多长时间(单位:微秒). 

write to text file---textsize:20 bytes------------ 18 usec
write to mysql-------textsize:20 bytes-------------------- 4466 usec
  
 
write to text file--------textsize:1024bytes------------ 18 usec
write to mysql-------textsize: 1024bytes-------------------- 5760 usec
 
 
write to text file--------textsize:102400bytes------------ 304 usec
write to mysql-------textsize:102400bytes -------------------- 32119  usec

write to text file--------textsize:1024000bytes------------ 3422 usec
write to mysql-------textsize:1024000bytes -------------------- 349800  usec
 
2.在linux服务器上测试g_slist_sort排序花费时间(微秒)
100个房间: 16 15 16
1000个房间: 204 205 206
10000个房间: 2582 2582 2602
 
3.muc(linux c)多个头文件互相包含引用其它文件中的结构时,编译不能通过,

必须在conference.h中包含大部分头文件,其它文件中不需要包含头文件。

4.jabberd14 配置方式(假设要把执行配置在/server/im目录下)     依次在linux命令行下输入:

/configure --prefix=/server/im

make

make install

即完成了.

原创粉丝点击