So use something like:
import std/tables
import std/monotimes
import std/times
import std/sequtils
proc main() =
var t = initTable[int, seq[int]](1000)
for i in 0..99:
t[i] = newSeqWith(1_000_000, 1)
let fakeSeq = newSeqWith(1_000_000, 1)
echo "start"
let start = getMonotime()
var cnt = 0
for i in 1..10000:
let tt {.cursor.} = t[i mod 100]
for x in tt:
cnt += x
echo cnt, " in ", (getMonotime()-start).inMilliseconds
main()
RunAnd learn some Nim. ;-)
