I have a small source file (less than 200 lines) but which uses Weave, which is a complicated beast. Just trying to compile it I get
nim c --threads:on -d:release Count_Reduction_WV_NL.nim 9.07s user 0.51s system 327% cpu 2.923 total
but with --gc:arc
nim c --threads:on --gc:arc -d:release Count_Reduction_WV_NL.nim 898.88s user 0.70s system 100% cpu 14:51.44 total
This is nearly 305 times slower? Is this to be expected?
nim -v
Nim Compiler Version 1.5.1 [Linux: amd64]
Compiled at 2021-04-07
Copyright (c) 2006-2021 by Andreas Rumpf
git hash: 834d5641e88b144c1cf94fa13f567b0a2acda977
active boot switches: -d:release
This is nearly 305 times slower? Is this to be expected?
Definitely not. :-) Some slowdown is expected as --gc:arc is more complex to process for the compiler but I'm talking about 20-50% here, not of a factor of 30.