Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which is faster... XSLT macro or .NEt User Control

Using Umbraco, which is quicker to load on a page...

XSLT Macro or a .NET user Control (via an Umbraco Macro).

like image 369
Coolcoder Avatar asked Aug 28 '09 15:08

Coolcoder


1 Answers

It depends on what you are trying to achieve, and how you go about it. A well-written XSLT macro will probably perform better than a badly-written .NET macro, and vice versa. XSLT is fast and elegant when manipulating XML for the display of data, but quickly gets unwieldy when trying to deal with user interaction, for example. A rule of thumb that I use is that if you are just displaying data then use XSLT, but if you want some user interaction then use .NET.

like image 73
David Conlisk Avatar answered Oct 06 '22 00:10

David Conlisk