Re: [CIL users] Pretty.breakString eats memory

2012-08-02 Thread Gabriel Kerneis
On Thu, Aug 02, 2012 at 09:01:56AM -0700, Christian Collberg wrote: > This consumes gobs of memory, and eventually hangs my machine: Note that I cannot reproduce the hang, but commit 62ab3e1a reduces memory usage a lot on my machine: https://github.com/kerneis/cil/commit/62ab3e1a I hope it fixes

Re: [CIL users] Pretty.breakString eats memory

2012-08-02 Thread Gabriel Kerneis
Le 02.08.2012 18:01, Christian Collberg a écrit : > This consumes gobs of memory, and eventually hangs my machine: breakString is not tail recursive, because of the try/with. I have a patch fixing the issue, but it's too late here to be confident about pushing it. I'll have some sleep and it s

[CIL users] Pretty.breakString eats memory

2012-08-02 Thread Christian Collberg
This consumes gobs of memory, and eventually hangs my machine: let prettytest = begin print_endline ("prettytest:1"); let line = ref "" in for i=1 to 1 do line := !line ^ "\n"; done; print_endline ("prettytest