My compiled XSLTs seem to take up a relatively large amount of memory (46k on disk to around 400k in memory for the PreparedStylesheet instance in one case) according to my profiler (YourKit). Is this normal and is there anything I can do (apart from refactoring the XSLT source) to bring the size down? The motivation is that I need to have (potentially) several thousand Templates available in the cache simultaneously and I don’t have *that* much memory to play with.

 

Thanks

Chris