X-Spam-Check-By: sourceware.org X-AntiVirus: PTMail-AV 0.3.88 X-Virus-Status: Clean (0.00512 seconds) Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: <4412EF74.1070500@byu.net> References: <1753CE61-D772-46F7-8393-84E419E49307 AT ptnix DOT com> <4412EF74 DOT 1070500 AT byu DOT net> X-Gpgmail-State: !signed Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <890F74C6-8E51-405F-86CC-551170A2EA70@honeynet-pt.org> Content-Transfer-Encoding: 7bit From: Pedro Inacio Subject: Re: select() too slow Date: Sat, 11 Mar 2006 18:04:37 +0000 To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 2006/03/11, at 15:40, Eric Blake wrote: > > I'm afraid that this is not a very good bug report, as you have not > attempted to describe WHAT is too slow, and have not provided a simple > test case that compiles out of the box, with timing numbers on the > test > case compared between Linux and Cygwin. Cygwin is only as fast as the > underlying Windows system calls permit it to be. Also, cygwin is open > source. Go look at the source code to select() and you will see > that it > is very complex, since Windows does not provide good hooks for an > efficient implementation. If you would like it to be faster, then > consider writing a patch to cygwin that can speed it up. > Eric, first of all this is not a bug report, but just trying to understand what might be the problem. If I knew what the problem is I was not asking if there is any known issue, a fix, or something. I've read the archives before posting and there are some guys with similar problems but no answers. I know that the select() function on windows is quite different and not very handy. One thing is weird for sure, similar code works just fine on Unix but is not very performante on Windows. I want to know if someone have found some way to deal with this strange issue. Thanks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/