Closed ThomasTJdev closed 2 years ago
@Clyybber do you think this is related to your refactorings?
Yeah, most likely.
Hello @ThomasTJdev do you have some code example to reproduce the issue? If the code is not public, could you try https://github.com/nim-lang/Nim/pull/19975?
Hi @xflywind,
Can confirm that our code compiles fine with recent devel and also quite fast. Thank you!
$ choosenim devel
Switched to Nim #devel
$ nim -v
Nim Compiler Version 1.7.1 [Linux: amd64]
Compiled at 2022-07-08
Copyright (c) 2006-2022 by Andreas Rumpf
git hash: ad0aee535435ac9b22c2ee9ef02085ffdc901d48
active boot switches: -d:release
$ gcc -v
gcc version 12.1.0 (GCC)
Upgrading to Nim 1.6.x using
orc
increases the memory usage with x10 during compiling.We are in the process of upgrading from 1.4.x to 1.6.x, but have hit a problem, where the memory usage explodes. On both Nim 1.6.0 and 1.6.2 (and 1.7.1) the compiling process suddenly reaches a point where the memory will increase rapidly and continues through the roof.
orc
.refc
on all Nim versionsorc
on Nim 1.4.x.We are heavily using asyncdispatch and
jester
throughout the code.Output
Additional Information