Directly dispatching a function via a call per the ABI of your computer vs producing a serialized message stream, sending it to another process, deserializing a stream and then calling the function.
Yes, it's less efficient.
The better question might be "did it matter in practice?".