3 ms·
-d:release disables bounds checking, so the Rust examples would have to be modified for unchecked indexing for a fair comparison.
by mrob 12y ago
-d:release disables bounds checking, so the Rust examples would have to be modified for unchecked indexing for a fair comparison.
- dom96 12y agoIt disables a lot of other things too. The current comparison is unfair. Why do the examples need to be modified to disable bounds checking for Rust? If it's easier you can compile the Nim examples with -d:release and enable bounds checking by also supplying --boundChecks:on.
- arthurtw 12y agoI’ve added additional results with Nim’s --boundChecks:on flag. Thank you two for the suggestions.