On Tue, 6 Jun 2017, Remi Collet wrote: > Le 05/06/2017 à 19:46, François Laupretre a écrit : > > > > PCS provides a fast and easy mechanism to mix C and PHP code in PHP > > extensions (more about PCS at http://pcs.tekwire.net). Thanks to the > > PHP 7 performance improvement and the inclusion of opcache in the > > core, a lot of existing non-performance-critical extension code may > > now be converted to PHP without significant performance loss (this > > must be measured case by case, of course, but tests show that > > opcode-cached PHP code is often faster than C). > > Sorry, but I don't like the idea of having PHP code bundled in C > extension. > > Have low-level part written in C, and user-land part in PHP is indeed > a good way (e.g. mondodb, phpiredis + phredis...), but having the PHP > library distributed via composer or any other way is enough. > > P.S. IIRC couchbase have tried this way, and revert it
We did it as well, in the early early days. It wasn't great and reverted that too. I also believe PHP code should be distributed through composer, and that is much easier to upgrade, as well as allow for multiple versions running on the same server. cheers, Derick
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php