graalvm

Yuner Bekir 2024-09-16T13:20:46.165359Z

Hi guys! I am currently in the process of investigating polyglot to allow the execution of js in clojure. Is there a way to increase performance without having to compile my project to native code? I am running the same code on clojure and nodejs (reading a very large json and building a sub object) on average it takes twice as long to run the same code on nodejs than in clojure

borkdude 2024-09-16T13:22:05.868709Z

native code isn't necessarily more performant also native code is a separate thing from polyglot

Yuner Bekir 2024-09-16T13:23:50.770789Z

@borkdude the general expectation is that native code will increase the performance, that is why I wanted to take note of it

borkdude 2024-09-16T14:01:57.174789Z

this just isn't always the case because of JIT