summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-08-20 11:54:18 +0200
committerGitHub <noreply@github.com>2018-08-20 11:54:18 +0200
commit2def61606912625f3d20076e6686235996f25e62 (patch)
tree9b6de8742fa821b2e943b02fc48d81448bc91b8c /lib/pure
parentf87a91a3ec97a83a160984a029d55335a6beb978 (diff)
downloadNim-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 'lib/pure')
-rw-r--r--lib/pure/xmltree.nim1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/pure/xmltree.nim b/lib/pure/xmltree.nim
index 47658b59b..d536cfed0 100644
--- a/lib/pure/xmltree.nim
+++ b/lib/pure/xmltree.nim
@@ -377,7 +377,6 @@ proc findAll*(n: XmlNode, tag: string, result: var seq[XmlNode]) =
   ##   findAll(html, "img", tags)
   ##   for imgTag in tags:
   ##     process(imgTag)
-  assert isNil(result) == false
   assert n.k == xnElement
   for child in n.items():
     if child.k != xnElement: