Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
LgWoodenBadger
on Dec 25, 2019
|
parent
|
context
|
favorite
| on:
Java JIT vs. Java AOT vs. Go for Small, Short-Live...
Actually finding the method via reflection is the time consumer.
Once you have the method reference, actually invoking it isn’t any different than a regular method.
sk5t
on Dec 25, 2019
[–]
Although I can't tell you why, it's been my experience that firing a simple method via reflection in both .NET and the JVM is roughly 2x the time of direct calls (or of calls via the 'dynamic' keyword in C#).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Once you have the method reference, actually invoking it isn’t any different than a regular method.