mirror of
https://github.com/EsotericSoftware/reflectasm.git
synced 2025-01-28 21:00:24 +08:00
setAccessible helps method reflection.
This commit is contained in:
parent
537351e3f7
commit
1472e95148
@ -16,6 +16,7 @@ public class MethodAccessBenchmark extends Benchmark {
|
||||
int index = access.getIndex("getName");
|
||||
|
||||
Method method = SomeClass.class.getMethod("getName");
|
||||
// method.setAccessible(true); // Improves reflection a bit.
|
||||
|
||||
for (int i = 0; i < 100; i++) {
|
||||
for (int ii = 0; ii < count; ii++)
|
||||
|
Loading…
Reference in New Issue
Block a user