HPHP 上的 WordPress
我已经看到确实可以使用 HPHP 编译 Wordpress,并且想知道......它实际上能快多少?我知道 HPHP 在静态站点上运行速度最快,但是它会使主要站点的 Wordpress 运行速度显着加快吗?
我同时知道这让一键升级和主题开发变得更加困难!
I have seen that is indeed possible to compile Wordpress with HPHP and was wondering... how much faster does it actually make it? I know that HPHP works fastest when it comes to static sites but would it make running Wordpress for major sites significantly faster?
I know at the same time that it makes the one-click-upgrade and theme development harder!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
去年,PHP 团队的核心成员 Rasmus Lerdorf 在在 Digg 办公室 中,他尝试让 Wordpress 在 HPHP 下进行编译……在完成了自己的工作后,他尽可能地加快了速度。
您不需要观看视频,幻灯片已经足够启发了。
tl;dr 是使用适当的工具对代码进行基于证明的优化,可以让您大幅提高速度,而无需使用 HPHP。哦,无论如何,您都需要修改 Wordpress 才能编译它,因为它使用 HPHP 无法复制的扩展。
Last year, Rasmus Lerdorf, a core member of the PHP team, made this presentation at the Digg offices in which he tries to make Wordpress compile under HPHP... after doing his own work to make it fast as he can.
You don't need to watch the video, the slides are enlightening enough.
The tl;dr is that proof-based optimization of code using proper tools will get you a great speed increase without the hassle of HPHP. Oh, and you need to modify Wordpress anyway to get it to compile, as it uses extensions that HPHP does not replicate.