2 ms·
Node is actually much slower than Java. True, the JavaScript implementation on the JVM is slower than V8 (even Nashorn, the new JavaScript engine included in Ja
by pron 13y ago
Node is actually much slower than Java. True, the JavaScript implementation on the JVM is slower than V8 (even Nashorn, the new JavaScript engine included in Java 8). Of course, the main motivation is, as others have said, integration with the huge Java ecosystem, but being able to drop down to Java for performance (when you need it) is a lot easier than writing native V8 modules.
- dmpk2k 13y agobut being able to drop down to Java for performance (when you need it) is a lot easier than writing native V8 modules. There's a node-ffi package, although it has some overhead from the call itself. https://github.com/rbranson/node-ffi https://github.com/rbranson/node-ffi