Title: Faster Smilies
Author: johanee
Published: <strong>2009 年 1 月 16 日</strong>
Last modified: 2009 年 1 月 16 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/faster-smilies.svg)

# Faster Smilies

 作者：[johanee](https://profiles.wordpress.org/johanee/)

[下载](https://downloads.wordpress.org/plugin/faster-smilies.zip)

 * [详情](https://cn.wordpress.org/plugins/faster-smilies/#description)
 * [评价](https://cn.wordpress.org/plugins/faster-smilies/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/faster-smilies/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/faster-smilies/#developers)

 [支持](https://wordpress.org/support/plugin/faster-smilies/)

## 描述

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!

## 安装

 1. Download and extract plugin files to a folder in your wp-content/plugin directory
 2. Activate the plugin through the WordPress admin interface
 3. Enjoy

## 常见问题

  My host does not allow the ‘e’ modifier to preg_replace()! What do I do?

Wait for 2.8, or if you really want to you can apply the patch from https://trac.
wordpress.org/ticket/6464

## 评价

此插件暂无评价。

## 贡献者及开发者

「Faster Smilies」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ johanee ](https://profiles.wordpress.org/johanee/)

[帮助将「Faster Smilies」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/faster-smilies)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/faster-smilies/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/faster-smilies/)，或通过[RSS](https://plugins.trac.wordpress.org/log/faster-smilies/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/faster-smilies/)。

## 额外信息

 *  版本 **1.0**
 *  最后更新：**18 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 2.5 或更高版本 **
 *  已测试的最高版本为 **2.7**
 *  语言
 * [English (US)](https://wordpress.org/plugins/faster-smilies/)
 * 标签
 * [performance](https://cn.wordpress.org/plugins/tags/performance/)
 *  [高级视图](https://cn.wordpress.org/plugins/faster-smilies/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/faster-smilies/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/faster-smilies/reviews/)

## 贡献者

 *   [ johanee ](https://profiles.wordpress.org/johanee/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/faster-smilies/)