是否可以将HHVM字节码存储为文件? [英] Is it possible to store HHVM bytecode as a file?

查看:147
本文介绍了是否可以将HHVM字节码存储为文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法将HHVM字节码保存为文件,因为HHVM使用JIT字节码编译而不是编译?如果没有,现代PHP版本(5.5,5.6)有什么替代方法吗?

Is there a way to save HHVM bytecode as a file, since HHVM uses JIT bytecode compilation instead of compiling? If not, are there any alternatives for modern PHP versions (5.5,5.6)?

推荐答案

您可以生成字节码在内部SQLite数据库中,然后打开Repo.Authoritative模式,其下HHVM将只使用来自SQLite db的字节码,从不触摸源.php文件。请参见 http://hhvm.com/blog/4061/go-faster

You can generate bytecode, which is saved in internal SQLite database and then switch on Repo.Authoritative mode, under which HHVM will only use bytecode from SQLite db and never touch source .php files. See http://hhvm.com/blog/4061/go-faster

这篇关于是否可以将HHVM字节码存储为文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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