[erlang-questions] CNODE performance question

Matthew Evans <>
Sun May 8 02:11:45 CEST 2016


Hi,
We have a bit of code that was implemented in a NIF: Erlang->NIF->Socket->Destination and the reverse went Source->Socket->NIF->Erlang.The NIF code was getting a bit flakey so we made the call to implement it as a CNODE instead to avoid the NIF taking down the VM if it crashed. Now I understand that a CNODE call will be slower due to the extra hop, but we are seeing a massive (14x) decrease for this particular call. The code is based on the example on the Erlang website (ei_send on the C side and {any,?SERVER} ! Message on the Erlang side).Before we do a deep dive into any other changes I was wondering if you were aware of any quirks in how CNODE is implemented that could cause this? I’m specifically thinking if Erlang uses any name server to identify the physical port.ThanksMatt 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160507/18e0da39/attachment.html>


More information about the erlang-questions mailing list