Closed rpau closed 6 years ago
@cal101 what I have realized is that using ASM (bytecode parser) is probably much faster than using reflection, specially to read the class definition. Now, the critical point is addType
in TypesLoaderVisitor
.
Reflectasm sounds cool but is reflection really a (measured?) problem? Or do you think about avoiding class loading via class loser and replace that with reflectasm? I wonder what that means for access of depended classes.
Since I got some strange results when profiling the class loader related code when I profiled that I used some simple timer based counting System.currentTime*. I found the results more reliable.
Regarding the review I will try to find a slot.
@cal101 thanks for your comments. Now I will review and fix one by one :)
BTW: about the performance improvement replacing reflection by ASM: https://github.com/rpau/javalang-compiler/pull/86
@cal101 waiting for your approval ;)
Will look at it after some sleep, garden work, shopping, working and driving. Maybe even some snack inbetween ;-)
@cal101 could you review the last changes and then approve if you consider? I think that all your styling comments have been addressed.
@cal101 feel free to review it :)