X-Spam-Check-By: sourceware.org Message-ID: <4412EF74.1070500@byu.net> Date: Sat, 11 Mar 2006 08:40:36 -0700 From: Eric Blake User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: select() too slow References: <1753CE61-D772-46F7-8393-84E419E49307 AT ptnix DOT com> In-Reply-To: <1753CE61-D772-46F7-8393-84E419E49307@ptnix.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Pedro Inacio on 3/11/2006 3:11 AM: > > Since I want to run the application on Windows also, I have ported it to > run on Cygwin. > Everything is ok except the poor performance of the select() function. > It is too dam slow. 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. - -- Life is short - so eat dessert first! Eric Blake ebb9 AT byu DOT net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEEu9084KuGfSFAYARAtXlAKDSeTckY9Sx88VnmxjABJtDxu4XDQCgvbGo GzYTAVOfUufDA0N6+j1No0M= =ea/r -----END PGP SIGNATURE----- -- 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/