Re: Question: pmap + number of threads + number of cpus

2010-06-29 Thread Meikel Brandmeyer
Hi, On Jun 29, 6:56 am, Todd wrote: > Q: Why does range return a LazySeq whereas seq returns > a ChunkedCons? I can see that these two classes are > very different...but I don't really understand what's > going on here. seq returns whatever is contained in the lazy-seq: user=> (type (lazy-seq [

Re: Question: pmap + number of threads + number of cpus

2010-06-29 Thread Todd
Chris - Thanks for your response. I have a few follow up questions: toddg=> (show (range 10)) === public final clojure.lang.LazySeq === ... so range returns a lazy seq toddg=> (show (seq (range 10))) === public final clojure.lang.ChunkedCons === ... but seq'ing it returns a ChunkedCons Q:

Re: Question: pmap + number of threads + number of cpus

2010-06-28 Thread Chouser
On Sat, Jun 26, 2010 at 7:01 PM, toddg wrote: > (running clojure 1.2 snapshot) > > Q1: Why does pmap use the number of available processors + 2? I would > have thought it would just use the number of avail processors... I'm not entirely sure, but I think the idea is to prevent too much context-sw