delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/07/16/05:02:01

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-5.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_YG
X-Spam-Check-By: sourceware.org
Message-ID: <5003D86E.3060905@users.sourceforge.net>
Date: Mon, 16 Jul 2012 04:01:34 -0500
From: "Yaakov (Cygwin/X)" <yselkowitz AT users DOT sourceforge DOT net>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: compiling coreutils with cygport
References: <CAMkU=1yRPm7vu30taP6Y0xNy3BRZxVOYUAL_aMCo794SSbGb6Q AT mail DOT gmail DOT com> <50009B44 DOT 4060504 AT redhat DOT com>
In-Reply-To: <50009B44.4060504@redhat.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

On 2012-07-13 17:03, Eric Blake wrote:
> Actually, coreutils tries to use all the *_unlocked variants of stdio,
> since those have better speed in single-threaded programs (all but sort
> are single-threaded, and sort skips stdio).  I do know that cygwin has
> putchar_unlocked, but does not have quite as many *_unlocked variants as
> Linux, so it may be a case where the configure logic to detect _unlocked
> functions went wrong and cygwin ends up using putchar instead of
> putchar_unlocked as a result.  I'll have to look into it more.

Currently we have the four required by POSIX: getc_unlocked, 
getchar_unlocked, putc_unlocked, and putchar_unlocked.  A little while 
ago I was working on the others which are available in Linux, as gcc 
will use them if available, but they didn't seem to make much difference 
to gcc's performance.  I still have that work locally, so if these would 
be useful, I could try to finish them up.


Yaakov

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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