You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by "MWI-msg (via GitHub)" <gi...@apache.org> on 2025/07/11 12:01:06 UTC
[I] Performance issues because of class loading attempts within the org.apache.poi.util.XMLHelper [poi]
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-unsubscribe@poi.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
Re: [I] Performance issues because of class loading attempts within the org.apache.poi.util.XMLHelper [poi]
Posted by "MWI-msg (via GitHub)" <gi...@apache.org>.
MWI-msg commented on issue #840:
URL: https://github.com/apache/poi/issues/840#issuecomment-3062537632
Thank you for the fast reply! We are looking forward to using the fixed version, but in the meantime we are already on it to use a workaround.
--
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-unsubscribe@poi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
Re: [I] Performance issues because of class loading attempts within the org.apache.poi.util.XMLHelper [poi]
Posted by "pjfanning (via GitHub)" <gi...@apache.org>.
pjfanning closed issue #840: Performance issues because of class loading attempts within the org.apache.poi.util.XMLHelper
URL: https://github.com/apache/poi/issues/840
--
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-unsubscribe@poi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
Re: [I] Performance issues because of class loading attempts within the org.apache.poi.util.XMLHelper [poi]
Posted by "pjfanning (via GitHub)" <gi...@apache.org>.
pjfanning commented on issue #840:
URL: https://github.com/apache/poi/issues/840#issuecomment-3062166650
* as a workaround, you could put xerces jar on your classpath
* I have #841 if you want to review that but it could be a while before we do a new release (but you could build poi yourself as opposed to waiting for a release)
--
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-unsubscribe@poi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org