Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OTEnterNotifier



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:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden
References: 
 >RE: OTEnterNotifier (From: "Tim Dorcey" <email@hidden>)
 >RE: OTEnterNotifier (From: Quinn <email@hidden>)
 >Re: OTEnterNotifier (From: Shaun Wexler <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.