Files
Nim/lib
ringabout c8e6b059a4 optimizes setLen for orc; disabling overflow checks (#25722)
ref https://github.com/nim-lang/Nim/issues/25695
ref https://github.com/nim-lang/Nim/pull/25715

This pull request introduces a minor but important change to the
`setLen` procedure in `lib/system/seqs_v2.nim`. The main update is the
temporary disabling of overflow checks during the initialization loop
when extending the sequence length, which can improve performance and
avoid unnecessary checks during this operation.

Memory and performance improvement:

* Disabled overflow checks for the loop that initializes new elements to
their default value when increasing the length of a sequence in
`setLen`, by wrapping the loop with `{.push overflowChecks: off.}` and
`{.pop.}`.
2026-04-09 11:07:04 +02:00
..
2017-02-20 17:24:19 +02:00
2026-02-20 16:41:06 +01:00
2026-04-02 07:19:43 +02:00
2026-04-02 07:19:43 +02:00
2013-03-16 23:53:07 +01:00
2021-06-03 14:00:53 +02:00
2026-04-02 07:19:43 +02:00