3 ms·
It can really depend. It’s certainly possible to write code in Julia that is slower than corresponding Matlab or Python code. Generally, naive Julia code shoul
by eigenspace 6y ago
It can really depend. It’s certainly possible to write code in Julia that is slower than corresponding Matlab or Python code.
Generally, naive Julia code shouldn’t be any slower than Matlab or Python, but it can happen. The Julia Discourse forum has many posts from people surprised to find their code running slower in Julia, but the community is also incredibly helpful so these posts almost always result in some rather simple modifications to the code that makes it handily outperform Matlab or Python implementations.
- fluidcruft 6y agoThat's good to hear. I can usually get things to work well in matlab/octave, but it takes a lot of time thinking about how to restructure a calculation as vectorized. What I'm hearing is that with Julia I can probably just write what I mean directly and skip the pondering/iterating about how to vectorize. So I think I'll try it. Thanks!