ORM slows things down in both Java and PHP. Converting the result set to objects requires a bit of overhead.
For raw speed, nothing beats dealing with the raw result sets in both languages. However, for convenience and code management, nothing beats ORM. No reason you can't use a mix depending on your needs.. ----- Original Message ----- From: Christian Grobmeier <[email protected]> To: [email protected] Cc: Sent: Thursday, August 18, 2011 11:25 AM Subject: Re: Web Performance > My research has lead me to "java totally sucks" or "php totally sucks" sorts > of comments vs a professional analysis. Have you really thought you would find something else? ;-) > Finally, I am not aware of any ORM libraries for PHP that would even come > close to Cayenne. Actually I think only propel is serious to consider as PHP developer: http://www.propelorm.org/ > Anyway, any link would be appreciated and any comments would be appreciated > as well. I think you cannot compare these two - one is a language, the other one is a platform. Java has some pretty cool features PHP cannot have because it is a interpreted scripting language. And of course, some stuff of PHP I really miss in Java. So is it very fast to build apps in PHP, as long as you don't exceed some number of code lines If it comes to performance - well, Facebook is in PHP, I think it is performant. Again, I don't think you can compare. You can just use the environment you have chosen and make the best out of it. Sometimes it works well (FB and PHP), sometimes not. I definitly enjoy typing in Java and that there are so many fantastic frameworks (struts, cayenne) out there. In PHP world you often start from scratch, or you use Zend Framework, PIWI or something else. I always found that Drupal is to painful for me. Anyway, I like both and use both. I use them just for different cases. Christian
