If I take the most basic of functions, e.g. fun()->0 end. and serialize it using term_to_binary(), it seems that this function is serialized to 650 bytes.<div><br></div><div>I guess I was wondering if its better to send a Mod:Fun pair from one node to another, or to send an actual function() object. Now, I am still not sure if a function() can be sent over the wire, but a Mod:Fun pair sure is a whole lot more compact.</div>
<div><br></div><div>What are the normal best practices when handling functions that might be send over the wire? Prefer Mod:Fun over function()?</div>