Should we rewrite the XSL in CDuce?

南楼画角 提交于 2019-12-13 09:23:25

问题


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:


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)



来源:https://stackoverflow.com/questions/14488207/should-we-rewrite-the-xsl-in-cduce

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!