|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: controller stylsheet. performance, best practices
Terence Kearns <terencek@xxxxxxxxxxxxxxxxxxx> wrote:
My questions is:
Since you use PHP, I'm suspecting you using the Sablotron parser, and my experiance with this parser is that it is *very* fast in its parsing. I would be more concerned with the XPath expressions within which is where most performance penalties comes from. But then, what you need to work out is a) how often will your templates be called? (what is your traffic?), and b) is the technology chosen the right one for the job. You'd be amazed what can be achieved with some fancy XSLT, but that doesn't make it clever to do so. Same goes for PHP; it isn't the fastest beast around, so if your system is expecting high traffic, compiled PHP (or some other technology) might be in order. Maybe just plain HTML could do the trick? Nothing beats plain HTML in performance. :) * I could probably use PHP code to include it on the fly, but I want to avoid doing so because I've made a rule for myself not to use server-side code embedded in the stylesheet. I've done so in the param of this example for purposes of clarity, normally I would send them to the processor directly from the PHP function call. I wouldn't bother much with this approach; it isn't worth it. As with any project you work on, Keep It Simple. Simple strategies to problems is often also the fastest way to solve them. Simplicity is underrated. :) Regards, Alexander
--
___________________ ______________________ _____________________________
| |
http://shelter.nu/ | alex at shelter . nu | http://shelter.nu/xsiteable/
___________________|______________________|_____________________________XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








