I want to make a file parser for some file format for best possible speed, preferably multithreaded. The question is, would writing it in Kotlin/Native instead of C/++ hurt its performance?
I suppose Kotlin/Native is fairly slower than C++, but what are your opinions?
b
Big Chungus
03/25/2021, 2:54 PM
You've answered your question yourself. If it's "best possible speed" you're after, use c++ or at least kotlin jvm
Big Chungus
03/25/2021, 2:54 PM
Heck, even kotlin js would probably be faster
r
Roukanken
03/25/2021, 2:54 PM
If your primary goal is as much speed as possible, then I would recommend C(++) or maybe Rust (tho afaik, Rust can be bit overwhelming at first time)
Afaik Kotlin/Native is not optimized for speed properly yet
Roukanken
03/25/2021, 2:58 PM
(Rust as language keeps up with C++'s speed, but brings a lot of modern language features... while dumping majority of work on compiler, so runtime can be as fast as C++ code)