• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Does CFWriteStream coalesce writes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Does CFWriteStream coalesce writes? (From: Jens Alfke <email@hidden>)
 >Re: Does CFWriteStream coalesce writes? (From: Mark Pauley <email@hidden>)
 >Re: Does CFWriteStream coalesce writes? (From: Jens Alfke <email@hidden>)
 >Re: Does CFWriteStream coalesce writes? (From: Josh Graessley <email@hidden>)

  • Prev by Date: Re: SCTP? YES!
  • Next by Date: Re: SCTP? YES!
  • Previous by thread: Re: Does CFWriteStream coalesce writes?
  • Next by thread: Segmented Downloads
  • Index(es):
    • Date
    • Thread