-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
orc: seq assignment slow #25687
Copy link
Copy link
Open
Description
Nim Version
Nim Compiler Version 2.3.1 [Linux: amd64]
Compiled at 2026-03-31
Copyright (c) 2006-2026 by Andreas Rumpf
git hash: e53058d
active boot switches: -d:release
Description
3x+ slower for simple seq[byte] copies
var tgt: seq[byte]
proc test() =
var xxx = newSeq[byte](16*1024*1024)
for i in 0..<10000:
tgt = xxx
test()$ bin/nim c -d:release --mm:refc -r /tmp/testit.nim
Hint: mm: refc; threads: on; opt: speed; options: -d:release
$ time /tmp/testit
real 0m11.556s
user 0m11.511s
sys 0m0.014s
$ bin/nim c -d:release -r /tmp/testit.nim
Hint: mm: orc; threads: on; opt: speed; options: -d:release
$ time /tmp/testit
real 0m35.659s
user 0m35.536s
sys 0m0.013s
Current Output
Expected Output
Known Workarounds
No response
Additional Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels