• 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: Five Reasons Why Synchronous Networking Is Bad
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Five Reasons Why Synchronous Networking Is Bad


  • Subject: Re: Five Reasons Why Synchronous Networking Is Bad
  • From: Mark Pauley <email@hidden>
  • Date: Thu, 5 Mar 2009 11:27:25 -0800

Dude, if you're monitoring 1k network sockets with CFSocket, select is the least of your issues.

You'll eventually hit the open fd limit, not to mention that you'll choke the rest of the system as you'll be hogging the filesystem.


On Mar 5, 2009, at 8:20 AM, Joel Reymont wrote:


On Mar 5, 2009, at 4:00 PM, Quinn wrote:

I wouldn't say that either of these is completely true, at least not yet. Certainly, CFSocket extracts a performance penalty on current system software and, if you're goal is the absolute best performance, dropping down to the BSD sockets level is definitely the best choice.


I can't help but chime in. Using select is suboptimal when the number of monitored file descriptors goes above 1k or so. I wish the code behind CFSocket used kqueue and kevents instead.

---
http://tinyco.de
Mac, C++, OCaml



_______________________________________________
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

_Mark email@hidden




_______________________________________________ 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
  • Follow-Ups:
    • Re: Five Reasons Why Synchronous Networking Is Bad
      • From: Joel Reymont <email@hidden>
References: 
 >Five Reasons Why Synchronous Networking Is Bad (From: Quinn <email@hidden>)
 >Re: Five Reasons Why Synchronous Networking Is Bad (From: Peter Sichel <email@hidden>)
 >Re: Five Reasons Why Synchronous Networking Is Bad (From: Quinn <email@hidden>)
 >Re: Five Reasons Why Synchronous Networking Is Bad (From: Joel Reymont <email@hidden>)

  • Prev by Date: Re(2): Five Reasons Why Synchronous Networking Is Bad
  • Next by Date: Re: Five Reasons Why Synchronous Networking Is Bad
  • Previous by thread: Re: Five Reasons Why Synchronous Networking Is Bad
  • Next by thread: Re: Five Reasons Why Synchronous Networking Is Bad
  • Index(es):
    • Date
    • Thread