跳到内容

Faster Smilies

v1.0

johanee · 2009年1月16日 上架

Make WordPress posts 20-50% faster, in one step. Not needed for 2.8+.

正在使用
10 以下
评分
暂无
累计下载
1,736
最近更新
2009年1月16日
需要 WordPress 2.5+已测试到 2.7

贡献者

On posts and pages with comments the most timeconsuming part in page creation is translating the smilies to images!

This has now been fixed in WordPress 2.8-bleeding-edge, but if you are not using that (and in production you probably shouldn’t, yet!), this plugin gives you the speedup anyway.

It replace smilies_init with a new one that constructs a more efficient regular expression, resulting in 10 ggr faster handling of smilies replacement.

Note: it uses the ‘e’ modifier to preg_replace to avoid patching any core files. Not all hosts allow this.

Performance

A page with 25 comments on an otherwise empty WordPress 2.7 got created on average 28% faster!

Profile of filters on 2.6.5 without plugin on a page with 403 comments:

    Total: 7.052s, Filters/Actions: 5.856s (83%), Db: 0.033s (0.5%)
    1. convert_smilies (calls: 403, total time: 3.911s (55.5%))
    ...

Profile with plugin:

    Total: 3.439s, Filters/Actions: 2.174s (63.2%), Db: 0.036s (1%)
    ...
    4. convert_smilies (calls: 403, total time: 0.357s (10.4%))
    ...

More than 50% faster!

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums