PHP optimized files

Why exactly are my php optimized files taking twice as long as raw source when being included/required? Time for some investigation…

So, got a support ticket open. Pretty much across the board my ubuntu encoded files running on freebsd, are twice as slow as identical raw source during require/include, but not execution!

–update– 2011-02-08
Not just twice as slow on freebsd, same on an aws setup linux using all the latests builds.

–update– 2011-03-06
For those hitting this page, the issue appears to be that encoded PHP files encoded by Zend Guard are taking twice as long to include/require on a linux or freebsd server. For me, with larger size files, this is causing a noticeable slow down in request processing because I am not using an opcode cache. I am attempting to establish if this is expected behavior or a bug…

–update– 2011-03-08
So, the final verdict is that this is not a bug per say, and just a reality of life of encoded files. It was the question I posed originally, but it took quite a while to get there as a final answer. At least in my cases, zend encoded files without also using an opcode cache, make little sense from a performance measure. Which is a pity as they ended support on FreeBSD also. Time for other options to be considered I suppose.

Gasoline Graphs

Historic data from my 10 year old Cavalier, until it encountered costly repairs:


A close up of the data at the end, showing my new corolla stats:



Using the old data, I was able to keep a close eye on how my driving habits influenced my gas consumption. Information allows informed actions, this simplest of data is the cause of a lot of wasted efforts addressing the wrong problems and coming to even more wrong conclusions. Next on my list is a wifi temperature network for the farm house.

New toys

4 weeks ago or so I decided to replace my aging 19″ non-stero tv. So I poked around and found a HD LCD TV I liked that was good on price, because I could not spend much money on something where I also have to spend money to effectively use (Comcast). So I decided on the LM320EM8 by Emerson and I snagged it for under the $480 mark.

So this gives me a 32″ HD LCD TV, now comes the strong desire to wall mount it and get it out of the way. After some hunting I located the Articulating Swingout Arm (AM2) by Premier Mounts. Most mounts for 32″ and up are the single plane rotation and expensive, where as I wanted a proper arm to move it off the wall. Plus, paying 1/5th the cost of the tv on a hunk of metal also seemed wrong, so I grabbed this arm for well under $50 with S&H (1/10th tv cost). The reviews were good and like the reviews I used my own hex bolts instead of the screws they included (all stripped). I’d recommend both products for the price minded consumer, and especially the mount because they all seem excessively priced. Assuming the TV lasts that long, I should be set for another 5+ years.