Re:GraalVM: The holy graal of polyglot JVM?
by xenadu02 on Monday September 16, 2019 @10:16PM
(#20990589)
I integrated a really simple JS runtime into a C# project once and found the same thing. V8 was orders of magnitude slower due to the interop overhead. Even though the IronJS compiler was very simplistic it was just so much faster to do it inside the CLR and let the MSIL JIT optimize to the degree it was able. An example of “worse is better” I suppose.
[ Parent
| on HN ]
Re:GraalVM: The holy graal of polyglot JVM?
by pjmlp on Tuesday September 17, 2019 @02:47AM
(#20992353)
Just like Google did with their FloatMath class, after Dalvik got replaced by a proper JIT compiler.
https://developer.android.com/reference/android/util/FloatMa...
Re:GraalVM: The holy graal of polyglot JVM?
by nine_k on Monday September 16, 2019 @11:35PM
(#20991145)
I'd say it's an example of optimizing the right thing. Business code is relatively short and uncomplicated, compared to the interop code. So optimizing the slowest part (but not the most obvious part) gave good results.
JS inside C# being faster than Node is great news!