我看过这篇文章-HipHop PHP (was Hyper PHP by Facebook)
但是,最近遇到这个Facebook Speeds Development With “HipHop Virtual Machine”, A 60% Faster PHP Executor
有人有这方面的详细资料吗?它值得 PHP 开发人员探索吗?
最佳答案
您可以在您链接的文章中链接的文章中找到详细信息:
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 或 memcached 以及更传统的方法进行扩展。
关于php - PHP 的 Facebook HipHop 虚拟机?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8697348/