Re: OTEnterNotifier
Re: OTEnterNotifier
- Subject: Re: OTEnterNotifier
- From: Quinn <email@hidden>
- Date: Wed, 22 Mar 2006 13:55:36 +0000
At 4:05 -0800 22/3/06, Shaun Wexler wrote:
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:
This email sent to email@hidden