适用于PHP的Facebook HipHop虚拟机? [英] Facebook HipHop virtual machine for PHP?

查看:103
本文介绍了适用于PHP的Facebook HipHop虚拟机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看过这篇文章- HipHop PHP( Facebook)

但是,最近遇到了这个 Facebook借助"HipHop虚拟机"加快了开发速度",速度提高60%的PHP执行器

However, recently come across this Facebook Speeds Development With "HipHop Virtual Machine", A 60% Faster PHP Executor

有人对此有细节吗?对于PHP开发人员来说值得探索吗?

Does anyone have details on this? Is it worth exploring for a PHP developer?

推荐答案

您可以在链接的文章中找到链接的文章中的详细信息:

You can find the details in the article linked in the article you linked:

hphpc本质上是传统的静态编译器,可转换PHP→AST→C ++→x64.长期以来,我们一直敏锐地意识到动态语言(如PHP)对静态分析的局限性,更不用说使用hphpi开发软件和使用hphpc进行部署所固有的风险.我们在hphpc方面的经验使我们开始尝试动态转换为本地机器代码,也称为即时(JIT)编译.动态翻译器可以在程序执行时观察数据类型,并生成类型专用的机器代码.

hphpc is in essence a traditional static compiler that converts PHP→AST→C++→x64. We have long been keenly aware of the limitations to static analysis imposed by such a dynamic language as PHP, not to mention the risks inherent in developing software with hphpi and deploying with hphpc. Our experiences with hphpc led us to start experimenting with dynamic translation to native machine code, also known as just-in-time (JIT) compilation. A dynamic translator can observe data types as the program executes, and generate type-specialized machine code.

类型专用的机器代码运行速度更快.除非您是FB的大小,否则不需要此功能.使用APC或内存缓存以及更传统的方法进行横向扩展.

The type-specialized machine code runs faster. Unless you are the size of FB, you do not need this. Use APC or memcached and more traditional approaches to scaling out.

这篇关于适用于PHP的Facebook HipHop虚拟机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆