X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=4.1 required=5.0	tests=AWL,BAYES_05,BOTNET,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
Message-id: <4C092F96.5040800@cygwin.com>
Date: Fri, 04 Jun 2010 12:53:42 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-to: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-version: 1.0
To: cygwin@cygwin.com
Subject: Re: Cygwin Performance and stat()
References: <4C03D6C5.4050004@x-ray.at> <80373222dd5d43b134a5ede7036e7674.squirrel@www.webmail.wingert.org> <20100602080626.GV16885@calimero.vinschen.de> <383c8b44a088dad09a0b77d3299feda7.squirrel@www.webmail.wingert.org> <20100602174848.GA14172@ednor.casa.cgf.cx> <e13dc87c8ea561acfd167ec92bb737cf.squirrel@www.webmail.wingert.org> <20100603235944.GA12167@ednor.casa.cgf.cx> <c2b0024257b44cff37a8f24b4c592f1b.squirrel@www.webmail.wingert.org> <20100604024422.GB12167@ednor.casa.cgf.cx> <78e7b77657c0cfcd63dc22ad9679bc85.squirrel@www.webmail.wingert.org> <20100604045807.GC12167@ednor.casa.cgf.cx> <2570318aabfa537bf24c8d3a55f9dcd4.squirrel@www.webmail.wingert.org>
In-reply-to: <2570318aabfa537bf24c8d3a55f9dcd4.squirrel@www.webmail.wingert.org>
Content-type: text/plain; charset=UTF-8; format=flowed
Content-transfer-encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 6/4/2010 12:37 PM, Christopher Wingert wrote:
> So here is an example of a performance gain by not using cygwin stat().  I
> did this patch in about an hour (with the help of some git code), so I
> wouldn't recommend it for any production use.
>
> On a dry run rsync from my local drive to my NAS (105GB, 34k files, 4k
> directories).  The current release cygwin rsync did it in [36m:43s], with
> the patch (below) applied, it dropped to [04m:48s].

But your patch only does a portion of the work that stat() is supposed to
do.  I don't think there's any question that ignoring the need to fill in
certain stat fields will save time.  But that's not really a workable
alternative either, if that's what you're implying.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
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

