Over in the clojure dev group, there's a discussion going on the overhead of sending thread-bound functions (by which, I think means a function that takes input from a thread-local) to an agent. Functions that are thread-bound require the overhead of copying thread-local state to the agent's thread while functions that don't, don't so why incur it? The question posed was whose responsibility is it to determine if the thread-local copying behavior is necessary: the client or the agent? It got me thinking...
Can functions carry metadata directly? If so, would it be possible for a function to be compiled with the knowledge of its inputs, both parameter lists and thread-locals? If this is feasible, then the send & send-off functions can easily optimize for the non-thread-bound case without making it the responsibility of the client. -- 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