What is the definition of a remote function?

The advantage and disadvantage of the remote calls is exactly the same:

The remote call allows for the hot code reload, which mean that it need to check if there is no newer code each time it is called.

However if you are trying to use local call as a lambda in form of &foo/0 then it will be slower than &__MODULE__.foo/0 as the second can be as a constant so will be faster to call.

1 Like