Re: Does CFWriteStream coalesce writes?
Re: Does CFWriteStream coalesce writes?
- Subject: Re: Does CFWriteStream coalesce writes?
- From: Quinn <email@hidden>
- Date: Fri, 30 May 2008 10:11:00 +0100
At 12:21 -0700 29/5/08, Josh Graessley wrote:
Skip CFStream, jump straight in to CFSocket.
The only problem with this is that CFStream gives you other benefits
beyond runloop integration. Most notably, support for SSL and SOCKS
proxies.
At 11:36 -0700 29/5/08, Mark Pauley wrote:
You might want to take a look at a tcp dump to see just how many
bytes per packet you're sending...
I concur. For Internet networking CPU cycles are basically free
(that is, the CPU is so much faster than the Internet that you don't
have to worry about optimising your CPU usage). So I wouldn't worry
about the CPU impact of doing multiple writes. It is, however,
worthwhile worrying about the on-the-wire impact.
So, before you start trying to fix this problem, check that the
problem exists (-:
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/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