Re: PHP extension for compilation and optimization of PHP code

From: Date: Sun, 05 Sep 2010 23:28:09 +0000
Subject: Re: PHP extension for compilation and optimization of PHP code
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-7595@lists.php.net to get a copy of this message
On Sun, 2010-09-05 at 23:36 +0200, Elettar wrote: > Hi, > I'm writing an extension that aims at compiling the PHP OpCodes into > machine code and optimizing it (using the LLVM libraries). > I have yet done a very first beta version that uses only a few machine > code, but it can already improve the rapidity up to a few percents. > The extension can be found here : > http://elettar.fr.nf/PHP/pco.tar.gz > Binary for windows is also available : > http://elettar.fr.nf/PHP/pco_win32.zip Interesting project. Can you elaborate what parts it improves and do you have any benchmarks already? I went over the code very quickly and one small remark: In your php_pco.h header you're having C++ code, please make sure that this header is C compatible as it is included from main/builtin_functions.c in case somebody does a static build. For this reason it is suggested to keep only the minimal information there and add other declarations to custom headers. In config.m4 you are assuming some libraries are available and are setting some flags which seem to be compiler-specific. It would be good to add proper checks there. johannes

« previous php.pecl.dev (#7595) next »