Hi Boris

> (something goes wrong when sending off a million agents, and for a
> while I am only using 1 of the four CPU's.)
> (using send or send-off doesn't seem to make a difference here,
> performance or crash-wise)

Your issue is not agent specific,
consider this code which for me blows up with out of memory error:

(dotimes [t 8]
  (time
   (let [numbers (for [i (range (pow 10 t))] 15)]
     (do
       (println (pow 10 t) "additions")
       (doseq [a numbers] (+ 1 a))
       (doseq [a numbers] (+ 1 a))))))

(NB: I used pow 8 for raw numbers, however you can run out of memory
with pow 7 using atoms)

There was a recent thread about true lazyness which might provide a
solution (not sure sorry).


Regards,
Tim.
--~--~---------~--~----~------------~-------~--~----~
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