What is the best way to generate a long string quickly in ruby? This works, but is very slow:
str = \"\" length = 100000 (1..length).each {|i| str += \"0\"}
str = "0" * 999999