Hi: I found what I think might be considered a bug, but I'm not certain. The doc-string for `pmap' just says that the passed-in function is applied "in parallel," but the code as-written is pretty clearly intended to keep only (+ 2 #CPUS) future-wrapped function applications realized at a time. It works exactly that way for non-chunked seqs, but when called with a chunked seq instead keeps realized some arbitrary number of futures between (+ 2 #CPUS) and the next multiple of 32.
Given that the code for `pmap' hasn't changed since chunked seqs were added to Clojure, this feels like a bug to me, but the parallelism semantics for `pmap' aren't exactly strictly defined. Is this worth opening a ticket for in the Clojure issue tracker? -Marshall -- 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