Should we rewrite the XSL in CDuce?

2019-09-19 17:18发布

We currently have a huge XSLT transformation that takes 20-30 minutes to process. We need to improve the performance and we are considering CDuce. CDuce looks promising. What is a good approach to doing this? Do we have to rewrite the entire xsl logic in CDuce?

1条回答
来,给爷笑一个
2楼-- · 2019-09-19 17:44

You could rewrite it in another language but there may be easier options, it depends how efficient that XSLT 1 code is. If it uses // a lot then it is not uncommon to get orders of magnitude speed improvement by rewriting it not to use // and to use keys or other constructs instead. Also of course switching to a newer more highly optimised XSLT engine wouldn't hurt. (Your question is tagged xslt 1 but an XSLT2 engine would be able to run it with no or little change)

查看更多
登录 后发表回答