PHP 的 APC 模拟 Ruby? [英] PHP's APC analogue for Ruby?

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

问题描述

PHP 有不同的操作码缓存,如 APC、Zend Optimizer 来缓存代码并显着加快速度.Ruby 有没有类似的东西?

PHP has different opcode caches like APC, Zend Optimizer to cache the code and dramatically speed things up. Does Ruby have something similar?

推荐答案

默认的 Ruby 1.9.x 基于字节码 VM,此外您还有基于 Java 虚拟机 (JRuby) 和 LLVM(RubiniusMacRuby).这些都将执行您期望从现代虚拟机获得的即时编译和其他优化.

The default Ruby 1.9.x is based on a bytecode VM, in addition you have ruby implementations based on the Java Virtual Machine (JRuby) and LLVM (Rubinius and MacRuby). These will all do just-in-time compilation and other optimizations you'd expect from a modern VM.

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

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