Hello there! I only started learning Clojure today, so please forgive me if this is a stupid question or something..
I am experimenting with Clojure's pmap operator as shown in the source
here:
https://github.com/freizeit/exercises/blob/master/cj-a-store-credit/clojure/ex1.clj
With line 14 (the exit() call) in place the program takes a second to
run:
$ time clojure -m ex1 /etc/motd
#<LinkedBlockingQueue [110, 60]> /etc/motd
real 0m1.013s
user 0m1.284s
sys 0m0.032s
With line 14 commented out or removed the program prints this part
immediately:
$ time clojure -m ex1 /etc/motd
#<LinkedBlockingQueue [110, 60]> /etc/motd
*but* the rest comes a minute later:
real 1m0.997s
user 0m1.336s
sys 0m0.080s
Is this normal/desired behaviour? If not, can somebody please explain
why this is happening? Thanks!
FWIW, I am observing this with Clojure 1.3.0 on debian (LMDE [1]).
[1] http://www.linuxmint.com/download_lmde.php
Best regards/Mit freundlichen Grüßen
--
Muharem Hrnjadovic <[email protected]>
Public key id : B2BBFCFC
Key fingerprint : A5A3 CC67 2B87 D641 103F 5602 219F 6B60 B2BB FCFC
signature.asc
Description: OpenPGP digital signature
