Another user has sent me some samples of generated code (XSLT this time) with a request to take a look at compile-time performance issues. It takes about 3900ms to compile (5000ms under Saxon-SA), and the new switch to suppress optimization reduces this to about 1180ms. So optimization is the culprit here. So the switch will be useful here. But I hate performance improvements that depend on the user setting a switch, because 99% of users will never discover the switch is there. So, are there opportunities to improve the compile-time performance of the optimizer? You bet there are....   more »