我们应该在 Cduce 中重写 XSL 吗? [英] Should we rewrite the XSL in CDuce?

查看:31
本文介绍了我们应该在 Cduce 中重写 XSL 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前有一个巨大的 XSLT 转换,需要 20-30 分钟来处理.我们需要提高性能,我们正在考虑 CDuce.CDuc 看起来很有希望.这样做的好方法是什么?我们是否必须在 CDuce 中重写整个 xsl 逻辑?

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?

推荐答案

您可以用另一种语言重写它,但可能有更简单的选择,这取决于 XSLT 1 代码的效率.如果它经常使用 // ,那么通过重写它而不使用 // 而是使用键或其他结构来获得数量级的速度改进并不少见.当然,切换到更新的更高度优化的 XSLT 引擎也无妨.(您的问题被标记为 xslt 1,但 XSLT2 引擎无需更改或只需很少更改即可运行它)

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)

这篇关于我们应该在 Cduce 中重写 XSL 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆