On Jan 20, 8:36 am, Perry Trolard <trol...@gmail.com> wrote:
> Yesterday I had a strange case of pmap (parallel map) eating up all of
> the heap space I'd make available -- from 256M up to a Gig. I track
> SVN, & I know for sure this wasn't happening last Wednesday (the
> 14th). Calling map in place of pmap caused the code to run fine inside
> of a 256M heap.

I just fetched Clojure from SVN and restricted the heap size (both
initial and max) to 256 MB, and your examples work for me:

user> (count (pmap inc (range
1000000)))
1000000
user> (def result (map inc (range
1000000)))
#'user/
result
user> (count
result)
1000000
user> (def result-p (pmap inc (range
1000000)))
#'user/result-
p
user> (count result-
p)
1000000

The last (count result-p) call takes a few seconds (probably because
there's a one-to-one mapping of tasks to sequence elements) but it
finishes.  Strange!

mfh
--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to