In my code I access hook functions with a certain pre-fix, e.g. initMyObject
and triggerMyObject
, etc.
Currently I'm using reflection to get the Methods, if they exist, then using invoke
to run them.
However, I could also create these functions as Runnables and have the objects run them that way. Is there any speed gain doing this?
I will do my own tests tomorrow, but wondered if anyone knew already.
I've read articles online about direct method vs reflection method invokation, but not invoke vs. runnable.
Aucun commentaire:
Enregistrer un commentaire