Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rc3更新了什么,为什么速度提升如此惊人? #1039

Closed
Xuanwo opened this issue Feb 8, 2015 · 3 comments
Closed

rc3更新了什么,为什么速度提升如此惊人? #1039

Xuanwo opened this issue Feb 8, 2015 · 3 comments

Comments

@Xuanwo
Copy link
Contributor

Xuanwo commented Feb 8, 2015

以前,开启分页的时候,我需要20分钟来完全生成我的网站。
后来关闭了分页,我的速度提升为8分钟。
现在更新了rc3,我居然只花了1分钟就生成好了。。。。

@tommy351 发生了什么?。。。

@tommy351
Copy link
Member

tommy351 commented Feb 8, 2015

我前幾天試著做了一些 CPU profile,發現最耗時的是 highlight.js,其次是 render,本次更新在 hexo.locals 多加一層快取,減少查詢次數,因此 render 速度也變快了。

@Xuanwo
Copy link
Contributor Author

Xuanwo commented Feb 8, 2015

效果很明显啊,除去CI系统固定的配置时间,这次更新之后render速度提升了将近10倍

@Xuanwo
Copy link
Contributor Author

Xuanwo commented Feb 8, 2015

更正一下:
原来是

INFO  467 files generatd in 6.33 min

后来

INFO  467 files generatd in 19 s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants