zendtech / ZendOptimizerPlus

Other
914 stars 142 forks source link

Zend OPcache and HHVM both together #199

Closed aditya- closed 9 years ago

aditya- commented 9 years ago

Hi ,

my environment

ubuntu 14.04 , php 5.5 , nginx 1.7.6

PHP 5.5.19-1+deb.sury.org~trusty+1 (cli) (built: Nov 19 2014 19:33:43) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
     with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies

I just want to use both zend opcache and HHVm together.

Is this allowed ? will i get better performance with this option

or this method not required ?

or if i can use both then will it eat more resources ?

anyone please replay

aditya- commented 9 years ago

i thought both are php byte code compilers ... so this thing allowed ?

Majkl578 commented 9 years ago

It makes no sense. HHVM and PHP are fundamentally different in terms of implementation. HHVM compiles code into bytecode and JITs it for best performance. I'd suggest reading this great article about how HHVM processes the scripts.

aditya- commented 9 years ago

@Majkl578 Thanks for your replay. I just have a doubt that Opcache stores precompiled script bytecode in the shared memory. where HHVM also compiles code into byte code . thats the reason why i got confused ?

laruence commented 9 years ago

HHVM is not PHP, Opcache is not for HHVM, thanks :)