On 03 Apr 2015, at 13:43, Gaurav Singh <grvanm.coder@gmail.com> wrote:

My window freezes whenever i try to run a loop which has even 100000 iterations which are quite less for a computational device.
Let say i run :
[| temp |
temp := String new.
(1 to: 100000)
do: [:i | temp := temp, i asString, ' ']] timeToRun.
The time taken to compute is a few milliseconds , but the program freezes for quite a few seconds, What can be the problem ?


Does the same happen when you run the loop with a simple computation? E.g. x := x + i.