lkml.org 
[lkml]   [1997]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: >256 fd patch...
   Date: Sun, 23 Mar 1997 12:30:30 -0800 (PST)
From: mdean <mdean@best.com>

select is very critical for any kind of daemon which processes requests on
multiple sockets also ...

Yes, but those daemons aren't calling select() in a tight 100%
CPU-consiming loop. If there's no network activity, the network daemon
will just hang in the select.

My point was that worrying about the CPU performance hit of adding two
"if" statements to select() is pure, simple, false optimization. No one
will notice it..... And if adding the two "if" statements saves
megabytes of memory (because you don't end up allocating large fdsets
arrays), then it's obviously the right thing to do.

- Ted



\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.035 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site