jpml
jpml copied to clipboard
Use Invoke API instead of Reflection API
Use API provided by java.lang.invoke instead of access via reflection in order to improve efficency.
As an example you can look on this library of mine (also, feel free to use it if you need to).
Using this seems to be a needed optimizations as some methods use access to classes' methods and fields per each call (e.g. DeconstructPattern).
Improved performance for StaticPattern.
Improved performance for PositionPattern.
Improved performance for PropertyPattern.