There are related issues but I created <https://github.com/nim-lang/Nim/issues/18558> for you.
- Expensive copy when compiling with --gc:arc tsojtsoj
- Expensive copy when compiling with --gc:arc Stefan_Salewski
- Expensive copy when compiling with --gc:arc tsojtsoj
- Expensive copy when compiling with --gc:arc tsojtsoj
- Expensive copy when compiling with --gc:a... Stefan_Salewski
- Expensive copy when compiling with -... planetis
- Expensive copy when compiling wi... Araq
- Expensive copy when compilin... tsojtsoj
- Expensive copy when compilin... Araq