There has been a bit of an awkward bug in Apache Xalan for a while now, and that bug is XALANJ-2540. The effect of this bug is that an internal SPI configuration file is loaded by Xalan thousands of times per XPath expression evaluation, which can be measured easily as such: this: Element e = (Element) … Continue reading How to Speed Up Apache Xalan’s XPath Processor by Factor 10x