The intersting on send is, that the agent queues the send actions if
you use send. If you use send-off the agent does not stores the action
into a queue.
Yet the code uses "send" predominantly...
On 03/04/12 18:39, Marcus Lindner wrote:
Could be, that in the case of pmap a similiar effect takes place and
the agent has less actions which does not need to be stored in his
queue. This can be the reason for the lesser memory consuption.
I'm not exactly sure I understand what you mean...
pmap creates a future for each element of the sequence in turn so each
invocation of the function occurs on a separate thread (cycling over the
number of available cores). In other words pmap assumes the function
mapped across the data is *very costly *and needs its own thread...In
our case the function is not costly at all (sending actions to an agent
returns immediately)...
Weird stuff ...
Jim
--
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