73

OptaPlanner - Java Reflection, but much faster

 6 years ago
source link: https://www.optaplanner.org/blog/2018/01/09/JavaReflectionButMuchFaster.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

What is the fastest way to read a getter from a Java class without knowing the class at compilation time? Java frameworks often do this. A lot. And it can directly influence their performance. So let’s benchmark different approaches, such as reflection, method handles and code generation.

The use case

Presume we have a...


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK