Messages in this thread | | | Date | Sun, 23 Mar 1997 16:44:31 -0500 | From | "Theodore Y. Ts'o" <> | Subject | Re: >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
| |