News for hackers. Stuff that matters.
Re:One Year After Switching from Java to Go: Our Experiences by Twirrim on Wednesday February 19, 2025 @08:51AM (#43102143)
The JVM doesn't attempt to compile a method until a method has reached 10,000 executions. So it's extremely likely your code ran the entire time in interpreted mode. Even if a method did get flagged as hot, you've then got the time taken to do the actual compilation to native code to contend with.

If you're trying to write systems code and want to use the JVM, GraalVM can do full ahead-of-time compilation and will get you almost instant start up with all methods natively compiled.

There are no comments on this comment yet.