Effective Xml Part 2: How to kill the performance of an app with XPath
Posted by: XmlTeams WebLog,
on 27 Sep 2011 |
View original | Bookmarked: 0 time(s)
XPath expressions are pretty flexible. This flexibility allows for very creative ways of using XPath. Unfortunately some of them are suboptimal and cause bad performance of apps. This is especially visible in Xslt transformations where stylesheets contains tens if not hundreds of XPath expressions. Here is the list of the most common bad practices (or even anti-patterns) I have seen: 1. // (descendant-or-self axis) This is a very common pattern that very often leads to serious performance problems....