3 ms·
> python was easily beating Nim in speed I'm just guessing here, but did you compile Nim in debug mode? (nim c filename.nim) From my experience, compiling fil
by narimiran 8y ago
> python was easily beating Nim in speed
I'm just guessing here, but did you compile Nim in debug mode? (nim c filename.nim)
From my experience, compiling files in release mode (nim c -d:release filename.nim) makes similar tasks run 10-100x faster than Python (usually around 30x for my use cases), and it doesn't require "highly skilled Nim developer" as you mention in your reply.
- nudpiedo 8y agosorry, I cannot tell it anymore since that was long time ago, the python version probably had a generator; also remember that python's IO and string optimizations are written all in C.