Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Best answer I could find</p> <p>"stuff to consider:</p> <ol> <li><p>Java web applications are compiled to bytecode. Even JSPs, which are compiled at runtime. This is an advantage over most uses of PHP, where the Zend Optimizer is not in use.</p></li> <li><p>Data can be cached in a live servlet instance - no direct/easy way of doing this in PHP to my knowledge (there is only ever a single instance of a servlet/JSP in memory)</p> <ul> <li>If anybody knows how to cache data in PHP without resorting to ugly hacks, please enlighten me!</li> </ul></li> <li><p>Java applications tend to be n-tiered, which generally results in a more maintainable application at a slight performance penalty. This probably sounds trollish, but honestly: even within Java itself direct use of JDBC will always be faster than going through three layers of objects to the database.</p></li> </ol> <p>But is an n-tiered Java application able to hit the database sooner than an uncompiled, hacked-up monolithic PHP script? I don't think there's an answer to that question.</p> <p>All that said, I'm working on an n-tiered MVC framework for php 5 (it's called Pure (<a href="http://www.sf.net/projects/php-pure" rel="noreferrer">http://www.sf.net/projects/php-pure</a>)), so my PHP applications are generally n-tiered too. I'll worry about speed when and if it becomes an issue. For now, it's definitely not an issue."</p> <p><a href="http://www.webhostingtalk.com/archive/index.php/t-373862.html" rel="noreferrer">courtesy of krumms</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload