Re: [Haskell-cafe] Incrementially updating an array

29 Dec
2010
29 Dec
'10
10:10 a.m.
On Wed, 29 Dec 2010, Robert Clausecker wrote:
Am Mittwoch, den 29.12.2010, 13:29 +0100 schrieb Henning Thielemann:
I don't know, I hope it's doing its best. :-) You might compare speed of Array.accum with a manually written foldl with (//).
At a glance onto it's sourcecode it actually does, but there are actually other problems now, as my program now runs out of stack space. (The list to accumulate contains about 1000000 elements). I guess it's all about that the garbage collector can't handle such things very well.
The pure number of 1000000 elements should not be a problem. You may post the failing code. I guess it has something to do with: http://www.haskell.org/haskellwiki/Stack_overflow
5260
Age (days ago)
5260
Last active (days ago)
0 comments
1 participants
participants (1)
-
Henning Thielemann