On Jan 20, 10:38 am, Perry Trolard <trol...@gmail.com> wrote: > > Doesn't pmap have to construct the whole sequence explicitly in order > > to map its execution across more than one processor? or does it take > > in a lazy fashion? > > Semi-lazy, according to the doc: > > Like map, except f is applied in parallel. Semi-lazy in that the > parallel computation stays ahead of the consumption, but doesn't > realize the entire result unless required.
Also, pmap maps one sequence item to one task, so it doesn't make sense to use it when the individual sequence items are tiny jobs. (Of course you could do your own mapping of chunks of vector elements to jobs.) However, your example below suggests this isn't the cause of the heap overflow. 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 -~----------~----~----~----~------~----~------~--~---