<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1047140" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1047140</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Firstly, are you talking</title>
    <link>https://www.webmaster-forums.net/server-management/zend-optimiser-can-it-compete-java#comment-1250825</link>
    <description> &lt;p&gt;Firstly, are you talking about Zend Optimiser or Zend Optimiser+? The former enables PHP to run files compiled by Zend Guard, the latter is an opcode cache and PHP optimizer. Great naming there, not confusing at all *rolleyes*.&lt;/p&gt;
&lt;p&gt;Secondly, word on the street is that APC makes code faster than Zend Optimiser+ and even if it weren&#039;t it &lt;em&gt;is&lt;/em&gt; going to be included in PHP 6 by default, so you should probably be using that instead. I haven&#039;t tested Zend vs. APC personally though, let us know if you find a site with benchmarks.&lt;/p&gt;
&lt;p&gt;Thirdly, no, I don&#039;t think PHP+APC (or any other opcode cache) can match the performance of Java. There are two primary reasons for this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;PHP is &lt;a href=&quot;http://en.wikipedia.org/wiki/Type_system#Dynamic_typing&quot;&gt;dynamically typed&lt;/a&gt; whereas Java is statically typed. The PHP interpreter must check the types of variables at runtime, causing a performance hit.&lt;/li&gt;
&lt;li&gt;Worse, PHP lacks a JIT compiler. This is a different animal to an opcode cache/code optimiser, JIT compilation makes bytecode into machine code before it is run, whereas an opcode cache only stores bytecode in shared memory, it only helps if you are &lt;code&gt;include&lt;/code&gt;-ing a lot of files and would benefit from storing them in memory.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Hopefully this blog post will help make things clear: &lt;a href=&quot;http://dow.ngra.de/2008/08/04/optimizing-ip2c-php-implementation/&quot; title=&quot;http://dow.ngra.de/2008/08/04/optimizing-ip2c-php-implementation/&quot;&gt;http://dow.ngra.de/2008/08/04/optimizing-ip2c-php-implementation/&lt;/a&gt; I think the author gives PHP a bit of a bad rap, considering it really isn&#039;t made for heavy data processing duties but see his reply when someone complains at him for not using APC:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;
@Am Leben, @Jacek&lt;br /&gt;
I ran the tests with APC. The configurations I used were:&lt;/p&gt;
&lt;p&gt;apc.enabled=1&lt;br /&gt;
apc.optimization=10&lt;br /&gt;
apc.enable_cli=1&lt;/p&gt;
&lt;p&gt;No difference to the original results. Why? APC caches opcodes. So it eliminates the disk hit.&lt;/p&gt;
&lt;p&gt;As I&#039;m just running the script once and I&#039;m actually just timing the loop that finds the country codes I&#039;m not saving anything. About the apc.optimization the manual says &quot;Expect very modest speed improvements. This is experimental.&quot; So my code does not get any faster.&lt;/p&gt;
&lt;p&gt;Would I make large number of script executions it would make a difference but not in these circumstances.
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;So, as far as the speed of code execution goes, an opcode cache is pretty-much irrelevant.&lt;/p&gt;
&lt;p&gt;Here&#039;s a better &lt;a href=&quot;http://shootout.alioth.debian.org/&quot;&gt;set of language benchmarks&lt;/a&gt;. If you have time, you should learn a variety of languages (Java, C/C++, C# etc.) so you can employ the one best suited to the task at hand.&lt;/p&gt;
 </description>
     <pubDate>Sun, 11 Jul 2010 05:04:00 +0000</pubDate>
 <dc:creator>jeevesbond</dc:creator>
 <guid isPermaLink="false">comment 1250825 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>HI Greg,
I am not refering to</title>
    <link>https://www.webmaster-forums.net/server-management/zend-optimiser-can-it-compete-java#comment-1250778</link>
    <description> &lt;p&gt;HI Greg,&lt;/p&gt;
&lt;p&gt;I am not refering to applets, but JSP and servlets running on Tomcat or J2EE and yes, I do mean internet based apps not stand alone apps - which actually is another reason for moving to Java so I can create Mobile apps and standalone apps.&lt;/p&gt;
&lt;p&gt;But in terms of web based applications running on a web server, can zend optimiser compete with Java for performance and speed when processing data?&lt;/p&gt;
 </description>
     <pubDate>Thu, 08 Jul 2010 09:05:06 +0000</pubDate>
 <dc:creator>benf</dc:creator>
 <guid isPermaLink="false">comment 1250778 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>In referencing using Java,</title>
    <link>https://www.webmaster-forums.net/server-management/zend-optimiser-can-it-compete-java#comment-1250763</link>
    <description> &lt;p&gt;In referencing using Java, are referring to just processing pages on the server side, or actually making stand alone apps or ones to run in the web browser? &lt;/p&gt;
&lt;p&gt;For running in the browser, I normally run with Java support disabled, as I normally am running several browser windows at once, and I hate hitting a site that kicks up Java and I am forced to shut all occurrences of the browser to get it to shut back off.&lt;/p&gt;
 </description>
     <pubDate>Wed, 07 Jul 2010 20:10:27 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1250763 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
