Kore Nordmann - PHP / Projects / Politics ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Author: Kore Nordmann :Date: Fri, 27 Jul 2007 20:26:41 +0200 :Revision: 6 :Copyright: CC by-sa ======================= eZ conference & FrOSCon ======================= :Description: Back from the eZ conforence and on my way to the FrOSCon. After a week at the amazing `eZ conference`__ in Skien (Norway), the city where the headquater of `eZ systems`__ is located, I will be at the `FrOSCon`__ for the next two days. I won't forget about the conference so fast - meeting all the guys, sometimes the first time in "real life", from eZ was amazing. Thanks for the nice week to all of you - the `crew day`__ was real fun and the show around the `eZ awards 2006`__ was simply great. __ http://ez.no/company/events/ez_publish_conference_2006 __ http://ez.no __ http://www.froscon.de/wiki/FrOSCon __ http://flickr.com/photos/sebastian_bergmann/sets/72157594172659137/ __ http://flickr.com/photos/sebastian_bergmann/sets/72157594174654835/ I will give a talk about `regular expression`__ on the PHP track organized by the `PHP Usergroup Dortmund`__ and a talk about `Rendering 3D with PHP`__ at the main track. Together with `toby`__ there will also be an two hour talk about "`PHP - best practices`__ ". __ http://froscon.phpugdo.de/ __ http://phpugdo.de __ http://programm.froscon.de/events/71.en.html __ http://schlitt.info/applications/blog/ __ http://programm.froscon.de/events/72.en.html I hope to see some of you at the FrOSCon tomorrow or on sunday. Trackbacks ========== Comments ======== - Luke Welling at Thu, 03 Aug 2006 07:32:00 +0200 I was not there, but I was having a skim through your slides and wondered how confident you are of the recomendation on slide 32 to use pre-increment rather than post-increment? http://talks.php.net/show/php-best-practices/32 My quick and dirty benchmark of running your code but with the for loop incrementing 1 billion times had post-increment fractionally faster. Are there systems where pre-increment is significantly faster? - kore at Thu, 03 Aug 2006 09:16:00 +0200 Yes. I gained a overall performance increase due to replacing most of the post increments with pre increments of about 10% in Image_3D. Pre-Increment does need less operations, what will be significant in not optimized languages. I don't know if any PHP Opcode-Caches optimize this, so that you perhaps need to disable them for testing. Just imagine, that the interpreter is able to just add 1 to a register on pre increment, but needs to allocate new memory and add 1 later on post increment. If I remember correctly these are 1 vs. 4 operations for the interpreter.