4 ms·
So in theory, if we ported python libraries into JS, the performance could be better than Python ?
by revskill 3y ago
So in theory, if we ported python libraries into JS, the performance could be better than Python ?
- byteofbits 3y agoAt work we do some pretty significant parallelised computation (using Node and Rust) and that has equivalent performance to a relevant python based library. There are nuances to how data enters and exits the VM runtime which means I couldn’t say with confidence if performance would be better or worse in the general case - but either direction is at least technically viable.
- NickChasanis 3y agoi was thinking about that, seems like a good deal overall with limited overhead.
- pjmlp 3y agoPython bindings for native libraries would still be the same, they are the same native libraries, while pure Python code would speed up thanks to JavaScript runtimes having JITs.