hibernate-validator
hibernate-validator copied to clipboard
HV-1226 Explore usage of method handles instead of core reflection in ReflectionHelper#getValue()
- https://hibernate.atlassian.net/browse/HV-1226
This PR is an attempt to allow users to switch between method handles and reflection when accessing properties.
EDIT: And as usual in such cases - some numbers: method handles:
# Run complete. Total time: 00:00:37
Benchmark Mode Cnt Score Error Units
SimpleValidation.testSimpleBeanValidation thrpt 20 2862.591 ± 195.745 ops/ms
reflection:
# Run complete. Total time: 00:00:37
Benchmark Mode Cnt Score Error Units
SimpleValidation.testSimpleBeanValidation thrpt 20 2739.682 ± 60.490 ops/ms
OK, for now, let's give up on MethodHandles. (Just so that you don't waste time rebasing this)