maybe this time?

This commit is contained in:
Arne Döring
2018-11-19 19:19:21 +01:00
committed by Araq
parent d60615583f
commit bfcf82c7e5
2 changed files with 29 additions and 13 deletions

View File

@@ -1,15 +1,23 @@
discard """
disabled: "travis"
"""
const size = 250000000
var saved = newSeq[seq[int8]]()
for i in 0..22:
# one of these is 0.25GB.
#echo i
var x = newSeq[int8](size)
saved.add(x)
proc main() =
for x in saved:
#echo x.len
doAssert x.len == size
var saved = newSeq[seq[int8]]()
for i in 0..22:
# one of these is 0.25GB.
#echo i
var x = newSeq[int8](size)
saved.add(x)
for x in saved:
#echo x.len
echo x.len
doAssert x.len == size
main()