Drupal手机码(Mobile Codes)模块

g089h515r806 的头像
Submitted by g089h515r806 on 星期日, 2010-05-23 15:53

项目地址: http://drupal.org/project/mobile_codes

中文文档: 

Mobile Codes使用中的心得

  http://www.syoi.net/node/285

Mobile Codes使用中的心得(二)  http://www.syoi.net/node/286

模块主要用于生成手机上所用的QR二维码,它提供了输入格式,Views/CCK格式器,Drupal API 主题化,可配置的预设置等特性.

输入过滤器用法:

Drupal版本:

我对汉化包的兴趣到不大,据说汉化后DRUPAL性能损失很严重?

g089h515r806 的头像
Submitted by g089h515r806 on 星期六, 2010-05-15 15:59

xxxxxx 20:54:43
我对汉化包的兴趣到不大,据说汉化后DRUPAL性能损失很严重?
Linuser 20:54:54
也不是很严重
Linuser 20:55:08
开启缓存后,
Linuser 20:55:19
汉化对性能基本上没有影响
 

很多人做过测试,加了汉化包以后,Drupal的性能降低了很多,Drupal对于字符串的查找替换严重影响了性能.这种测试是科学的,但是也是非常片面的,就像瞎子摸大象一样.网上流行着一片很有名的文章,而且刊登在了程序员这样的杂志上了.里面好像就提到了汉化对Drupal性能的影响,遇到很多程序上的元老级的人物,他们很多也持这种态度.

这种观点是很片面的,它仅仅是考虑了Drupal在处理一个完整页面请求周期,这一前提的下数据.但是在现实中,Drupal提供了N多的缓存措施,能够从完整页面请求周期中多个不同阶段,返回页面,只要稍微的改进一下缓存,上面的影响就会降到接近于0了.

Drupal版本:

drupal performance:为何减小module文件大小能加快速度?

g089h515r806 的头像
Submitted by g089h515r806 on 星期六, 2010-05-15 15:24

在drupal的handbook:http://drupal.org/node/146172 上有这么一句话

Any module that has more than ~50 lines of code for page handler functions (including form handling functions if applicable) should split them off into a separate file. That reduces the overhead for PHP when loading modules, and therefore speeds up every single request on the site.

Drupal版本:

页面

Subscribe to Think in Drupal RSS