diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-08-20 11:54:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-20 11:54:18 +0200 |
commit | 2def61606912625f3d20076e6686235996f25e62 (patch) | |
tree | 9b6de8742fa821b2e943b02fc48d81448bc91b8c /tests/system/tostring.nim | |
parent | f87a91a3ec97a83a160984a029d55335a6beb978 (diff) | |
download | Nim-2def61606912625f3d20076e6686235996f25e62.tar.gz |
exploit nil seqs for performance (#8688)
* changes $ for seqs to never produce 'nil' * exploit the fact that empty seqs don't have to allocate in the code generator
Diffstat (limited to 'tests/system/tostring.nim')
-rw-r--r-- | tests/system/tostring.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/system/tostring.nim b/tests/system/tostring.nim index 99299f203..42c07c0a4 100644 --- a/tests/system/tostring.nim +++ b/tests/system/tostring.nim @@ -24,7 +24,7 @@ doAssert "nan" == $(0.0/0.0) # nil tests # maybe a bit inconsistent in types var x: seq[string] -doAssert "nil" == $(x) +doAssert "@[]" == $(x) var y: string doAssert "" == $(y) |