@Arak, my objects will all be different, so my table memory will increase. Am I 
right ? In my case, I did the same thing as you. But my code is a bit 
different, it's like I call it that (I don't know if there's any difference) 
side Nim.
    
    
    var testTable: Table[string, MyObj]
    
    proc populateTable(age: int) =
      let sharedObj = MyObj(age: age)
      testTable["key" & $age] = sharedObj
    
    for i in 1..10000:
      populateTable(i)
    
    
    Run

Reply via email to