Regarding UNIX domain sockets, how efficient are they, say, compared
to mach ports, or even shared memory with semaphores? I'm strongly
considering adopting them for inter-process communications, since I
can abstract the local vs remote host case with CFSocket. I was
also wondering how efficient these domain sockets were at kernel
crossings, vs a custom UserClient?
I haven't profiled this stuff, so I'm basically guessing here...
UNIX domain sockets are probably not the most efficient IPC
mechanism. Because they follow the sockets API model, they
necessarily involve a copy. For large chunks of data, that's going
to slow you down. OTOH, on the latency front, I doubt they're
significantly worse than other IPC mechanisms.
What sort of data are we talking about here? Unless you're trucking
around multi-megabyte buffers, efficiency isn't a big concern.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden