Part 1 presents XCache, a PHP extension that caches PHP opcodes in memory.
第1部分介绍了XCache,它是把php操作码缓存到内存中的PHP扩展。
First off, it doesn't come with a Ruby parser - instead it executes opcodes of the Ruby 1.9 VM.
首先,HotRuby并不包含一个Ruby语法分析器——而是执行ruby1.9虚拟机的操作码。
The core VM (which is really just the opcodes) is currently written in c, as are the primitives.
目前,虚拟机的核心(实际上就是操作码)和基础实现(primitives)都是使用C语言编写的。
Providing you know the Perl opcodes, you can begin to identify where the potential bottlenecks might be.
了解Perl 的操作码,就可以开始判断哪里可能是瓶颈。
After your PHP code has been translated into opcodes, it can be saved and reused again and again — until the original code is modified.
PHP代码被翻译成操作码后,可以把它保存起来并重复使用——直到原始代码被修改。
A set of processor-readable opcodes and data. The output of compilers, assemblers, linkers, and locators are files containing object code.
处理器能读的操作码和数据。编译器、汇编器、连接器和定位器的输出文件都含有目标代码。
Because you're looking at the opcodes generated during the compilation stage, you get to see the code after Perl's own internal optimizations have been applied.
因为您正在查找在编译过程中生成的字节码,所以可以看到代码经过Perl自己内部优化后的结果。
Here, software such as the Zend Engine takes the time to optimize the opcodes produced during compilation, literally reducing the amount of work that the code performs.
此处,Zend Engine之类的软件会优化编译过程中产生的操作码,这理论上会减少代码执行的工作总量。
Of course, in some applications, the time required to translate a file of PHP source code to its corresponding opcodes is insignificant compared to actual execution time.
当然,在某些应用程序中,相比较实际的执行时间,将php源代码文件翻译为其相应的操作码所需的时间微不足道。
You should see a list of PHP files in the cache, along with cache hits, the size of the code as measured in opcodes, the size of the source file measured in bytes, and more.
您能看到缓存中的PHP文件列表,连同cache hit、操作码的代码大小、源文件的字节大小,等等。
So when the cached opcodes of a PHP script exists, we can skip by the parse and compile steps of the PHP request process and directly execute the cache opcodes and output the results.
因此当php脚本的缓存操作码存在时,我们可以跳过PHP请求流程的解析和编译步骤,直接执行缓存操作码并输出结果。
So when the cached opcodes of a PHP script exists, we can skip by the parse and compile steps of the PHP request process and directly execute the cache opcodes and output the results.
因此当php脚本的缓存操作码存在时,我们可以跳过PHP请求流程的解析和编译步骤,直接执行缓存操作码并输出结果。
应用推荐