MWI-msg opened a new issue, #840: URL: https://github.com/apache/poi/issues/840
We are within special circumstances because we consume apache.poi within Eclipse as OSGi bundle, but the problem can also occur outside of OSGi. When using apache.poi to read Excel files the XMLHelper is indirectly called a lot through diverse call hierarchies. There are many class loading mechanics within that class, but the one that causes the most trouble for us is the "getXercesSecurityManager()" method. Every time the security manager is to be load, it searches the corresponding class. But once the class is found, it is not cached, so the "Class.forName(..)" is called every time, which can be time consuming under certain circumstances. Is it possible that the class is cached, once it is loaded? Is the security manager still relevant? Why is there a static array with only one class name in it used to load the security manager? Maybe the code can be optimized? The reason why this is especially a problem within an OSGi Eclipse environment is described here: https://github.com/eclipse-orbit/orbit-simrel/issues/54 It is not the only occurrence that leads to performance issues, but maybe this one can be fixed? Thanks in advance. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org