Js_of_ocaml final compilation phase performace

I’m looking at ReasonML and js_of_ocaml these days and it seems that whole npm infrastructure is overcomplicated bloatware (which is bad). The good thing is that ReasonML compiles fast, but JSOO doesn’t because of final phase where we convert whole bytecode program to javascript. Even for small ‘helloworlds’.

Did anybody investigate how to speedup linking of js_of_ocaml projects? Maybe I am missing a very smart hack which makes final linking phase faster?

Use separate compilation. If you are using dune that should happen automatically if you compile with the dev profile.

Never heard about this.
Thanks!