Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"The speed optimized binary is much smaller..."

Did I miss where he optimized for speed?



Including `-d:release` optimizes it, so that's probably what he meant. It's one of the first things in the [tutorial](http://nim-lang.org/0.11.0/tut1.html).


Writing "--opt:size" means to try to optimize for size, trumping optimizations for speed you get with plain "release" mode.


I'm guessing -d:release implies —opt:speed (on top of disabling various runtime checks)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: