Explicitly construct array for dispatching events#405
Conversation
|
What's the purpose of this commit? Does it lower cpu or memory consumption? If so, do you have some some tests that shows this? |
Reduces array creation caused by invoking events via reflection, since java.lang.Method.invoke(...) creates new array on each invocation, this commit replaces it with direct Will provide tests maybe tomorrow, cuz I'm a bit tired rn |
|
You are missing a bunch of |
|
The purpose of those classes excluded from jar packing is that he apparanrly didnt find a library for these jre-internal classes. |
Nope, |
|
You closed PR, and did not allow to fix this? |
|
If you have a fix, you're more than welcome to open a new PR, we cannot use those internal classes however. |
|
Is 99.99% also not Java 8 compatible |
|
You could try putting everything into the classpath instead of the module path. Reflection should work as expected then. At least thats what we see in Java 11. |
|
This PR breaks in several ways in java 9+, breaking compilation is a major one, and indicates that this is not compatible with 9+ as a whole; I'm not really interested in trying to hack around this, or require that users potentially have to start the jar differently |
|
Yes, I completely agree with that. I just wanted to say that this option is available for use when automated modules do not allow reflective access for example for older plugins that do not have a module information file. |
No description provided.