https://issues.apache.org/bugzilla/show_bug.cgi?id=56838
--- Comment #3 from Mark Thomas <ma...@apache.org> --- Having spent some time digging into this, the bulk of the delay is related to class loading. The text case triggers an attempt to load the same class for every iteration. The bulk of the performance difference between 7.0.x and 8.0.x is as a result of different optimisations (e.g. r1539992 ) being applied to 8.0.x when compared to 7.0.x. While the web app class loader could be optimised for this test case, it would be at the expense of more common cases. In this case it would be better for the application to retain a simple pool of XML objects and reuse them as required. There are a few changes (such as caching the call to getResources()) that will shave a few % off the 8.0.x time and are also generally useful. I'll look at making those changes shortly but they aren't going to be sufficient to enable 8.0.x to handle this particular case as well as 7.0.x does. Overall, I think this is going to be resolved as WONTFIX. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org