delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/11/10:40:51

X-Spam-Check-By: sourceware.org
Message-ID: <4412EF74.1070500@byu.net>
Date: Sat, 11 Mar 2006 08:40:36 -0700
From: Eric Blake <ebb9 AT byu DOT net>
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>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019