@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
- Stock address instead of plain object in a table : C to Nim zack
- Stock address instead of plain object in a table : C to Nim PMunch
- Stock address instead of plain object in a table : C to N... zack
- Stock address instead of plain object in a table : C ... PMunch
- Stock address instead of plain object in a table ... zack
- Stock address instead of plain object in a t... PMunch
- Stock address instead of plain object in... zack
- Stock address instead of plain objec... Araq
- Stock address instead of plain objec... zack
- Stock address instead of plain objec... Araq
- Stock address instead of plain objec... Alogani
- Stock address instead of plain objec... PMunch
- Stock address instead of plain objec... zack