Hi,
I was under the impression that working with XSLT would be much faster than HTML, because of the If Statements/Defined parsing. I was mistken.
I created a blank master page and adapted an eCom Product HTML template with +/-40 If Statements/Defineds, and converted it to XSLT and compared the results. Check the attachment. Color legend:
- grey - before and after eCom Content - No relevant remarks
- green - product template processing. XSLT is 10x slower
- red - differences between HTML and XSLT
Despite some variation that occours everytime I loaded the page, HTML stood out. I also noticed that there are differences in getting the content and the way the DataReader performed.
Also there were a number of "Starting template.ouput" and "Ending template.output()" repeated several times one after the other when in HTML (I deleted the repeated with 0ms from the excel).
Are HTML templates actually adviced for performance issues?
Nuno