From: Lane S. <la...@op...> - 2005-07-18 18:40:09
|
Marc Palmer wrote: > Dominik wrote: > >> Hy, >> i searched the wiki but didn't find any information about the >> performance of >> webmacro. How is it compared to a plain-output (via println()) >> servlet? And, >> perhaps somebody knows, how is it compared to a php script with a >> template-engine like smarty or other. > > > I don't believe we have any stats but: not true. run ant test and then look at the working directory :). > > 1. println() - will be faster but probably only for trivial cases > unless you write some really complicated println() code, because WM > has lots of caching and so on and offers much more functionality so > you can't really compare this. > > 2. PHP - having used PHP I am pretty sure it will be quite a bit > slower, as PHP as I understand it is always interpreted, and Java code > is typically running with JIT compilation. The difference between WM > and PHP may be less if the PHP templating caches an abstract syntax > tree of the template, but I'm not sure they do. It would be very ugly > writing something like that in PHP... > > PHP is really a "quick fix" language, i.e. for hacking sites together > quickly or using existing "Portal" tools like PHP Nuke. Serious things > with scalability and performance considerations are much better done > in Java, but take a bit longer to develop. I disagree with this last paragraph. php used properly and with its object-oriented support can create superlative applications which are "rendering (DHTML, CSS, JS) and database intensive". In other words, 90% of the everyday web applications. If you are looking to create a content-centric application (articles, feeds, users, shopping, calendar and more), you absolutely must run to Mambo. I consider myself an average web developer but with Mambo, I created something that everyday gains users at the rate of 20-30 per day for a radio station in town ( htttp://www.mighty1090.com ). In short, for content-driven applications and CMS in general, do not overlook Mambo. I don't think in my 25 years of experience I have ever seen such a promising technology as Java been so mismanged by its owner leading some to call Java the Cobol of our generation. -Lane > > -- Lane Sharman Providing Private and SPAM-Free Email http://www.opendoors.com 858-755-2868 |