From: Mark Hahn Date: 2002-01-16T02:37:45+09:00 Subject: memory usage question I need to write a script that will use a hash with 4 million strings of 16 chars each. As a test I wrote this quick script: h = {}; s = 'aaaaaaaaaaaaaaaa' for i in 1..4_000_000 h[i] = (s = s.succ) end This ran relatively fast, but it consumed 265 megs of windows memory and failed with out of memory error at around 3 million elements. Why did Ruby fail at 265 megs and is there another way for me to do this?