4 ms·
How is it less efficient?
by erikpukinskis 8y ago
How is it less efficient?
- AnIdiotOnTheNet 8y agoIt involves syscalls and data copying. How could it not be less efficient?
- moosingin3space 8y agoThere are examples of very efficient IPC, just not in UNIX-land. If your IPC system is integrated with the scheduler, the difference between a dynamic library call and IPC can be minimized into irrelevance.
- erikpukinskis 8y agoI was not certain that data serialization and copying is required. Is that always true? You can’t do IPC with some shared memory setup?
- renox 8y agoInside one application OK but for other use it'd be a security and stability nightmare: less memory protection..
- butterisgood 8y agoDirectly 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?".
- astine 8y agoI once replaced an export operation that depended on COM calls to Excel with some text manipulation code and brought the run time down from 30 minutes to an hour to just a few seconds. So in at least that case it did matter in practice.