You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/03/23 12:45:28 UTC
[GitHub] [netbeans] oers opened a new issue #3838: JarClassLoader performance could be enhanced
oers opened a new issue #3838:
URL: https://github.com/apache/netbeans/issues/3838
### Description
Currently the JarClassloader is kind of slow. It iterates over ALL present jars, when queried for ressources or classes. This leads to drastic perfomance losses with lots of jars and many resource requests. There is no caching.
### Use case/motivation
In our netbeans platform project Hibernate initialisation takes 40 seconds (compared to the same initialisiation in a Unit test which takes 4 seconds). Hibernates looks for a lot of SPI Lookups and Flyway looks for sql migratrion files for example.
We made our own adapted version of the JarClassloader which remembers which classes/resources are located in which jars and this improved perfoamce drastically for the whole application. This approach might not be feasibly for the netbeans product as such but it shows that there is room for performance improvements.
### Related issues
_No response_
### Are you willing to submit a PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow the Apache Software Foundation's [Code of Conduct](https://www.apache.org/foundation/policies/conduct.html)
--
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: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] neilcsmith-net commented on issue #3838: JarClassLoader performance could be enhanced
Posted by GitBox <gi...@apache.org>.
neilcsmith-net commented on issue #3838:
URL: https://github.com/apache/netbeans/issues/3838#issuecomment-1076418989
> We made our own adapted version of the JarClassloader which remembers which classes/resources are located in which jars and this improved perfoamce drastically for the whole application. This approach might not be feasibly for the netbeans product as such but it shows that there is room for performance improvements.
It might. Perhaps you could consider contributing a PR with the changes in your adapted JarClassloader for testing and a less abstract discussion?
--
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: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists