
Hi All, I am optimizing a program to consume less memory. If I profile it with +RTS -hd, it reports to fill 50% of my memory with stg-ap-1-upd-info. Does this mean anything? Regards, Robert The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.

I think it means you're created lots of thunks of the form (f x).
Perhaps some foldl vs foldl' issue? If you're not using foldl
anywhere, look at tail recursive functions and try and make their
accumulators strict.
HTH
On 3 March 2010 16:11, Herk, Robert van
Hi All,
I am optimizing a program to consume less memory.
If I profile it with +RTS -hd, it reports to fill 50% of my memory with stg-ap-1-upd-info.
Does this mean anything?
Regards, Robert
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
-- Push the envelope. Watch it bend.
participants (2)
-
Herk, Robert van
-
Thomas Schilling