Вопрос

Especially for server applications, whether to cache an XslCompiledTransform instance if the same stylesheet is likely to be executed again.Why it is important to cache loaded XslCompiledTransform instances?

Это было полезно?

Решение

Because the cost of compiling a stylesheet is high compared with the cost of executing it, and you don't want to incur this cost on each transformation if you can avoid it.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top