On Sun, 4 Oct 2009, Elliott Slaughter <elliottslaugh...@gmail.com> writes: > You're right, it was a memory leak, although it took me hours to find. > Clojure's lazy lists were responsible for the leak; I wasn't honestly > expecting this innocent looking code to be so insidious.... > > (defn leak [] > (loop [v [0 0]] > (recur (map + v [1 1])))) > > Adding a doall call fixed the leak.
Could you please provide a more concrete (if possible working) example? I'm trying to figure out the actual reason of the problem, and there are still some missing parts in the maze. Regards. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---