delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/05/27/11:14:53

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; q=dns; s=default; b=V6
mweNqGnWzl4p6flDGpu5dyVZpMrnMzQ5CokrtIB1rmtOqngLMhlS/ePxOX5jDlwL
GAXGxafnvmIqGnCyn1M28prKhATaI8LWWbV7o8emERX1XWdm3ehELetazMtdQORD
xJFXhlgcV5wPqD2zLT9y2C/pv6y3eVENKcMXfIrYA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; s=default; bh=bxAT/tMS
3cmwbW4hG45Sr1lzx88=; b=tzvt/MuchCFUqsXqmOAGFadm50CwBT3r2o3FmJ7H
3kl8XyvjjAjEz9eRT5RyAHauxZa1twfliAGevitiOe50XHOciKE/Md73hc5Fd1B5
GKoeXhnk3DMqQpAwebgwbFiJ1OcrMX7YyqOG6ceDNDITgblCeJ4ubNJlyaWq+CXp
SKY=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPAM_BODY,SPF_PASS autolearn=no version=3.3.2
X-HELO: mail-wi0-f170.google.com
MIME-Version: 1.0
X-Received: by 10.180.38.70 with SMTP id e6mr6833659wik.91.1432739652794; Wed, 27 May 2015 08:14:12 -0700 (PDT)
In-Reply-To: <rojbmadbt134u0b0lj8af3e4f0ocke7no1@4ax.com>
References: <CAG4rVi7vLu5TLAcvrOY8Kbj6uzM9Ats6Jb9BDF-b94tD2cSJ0Q AT mail DOT gmail DOT com> <5565CC40 DOT 7020100 AT tlinx DOT org> <rojbmadbt134u0b0lj8af3e4f0ocke7no1 AT 4ax DOT com>
Date: Wed, 27 May 2015 09:14:12 -0600
Message-ID: <CAG4rVi7uBotUrx3Yc+Ae2oB2jaYTqg6jS-V-TRSw8j3oqjuzOA@mail.gmail.com>
Subject: Re: Fish Shell Speed?
From: David Frascone <dave AT frascone DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

Thanks guys.  I'm doing some settings based on a cwd change, so, I
could base it on that -- only do the checks if you change directories
and/or leave the repo.  I'll play with that.

On Wed, May 27, 2015 at 8:09 AM, Andrew Schulman
<schulman DOT andrew AT epa DOT gov> wrote:
>> David Frascone wrote:
>> > 1) Has anyone seen this behavior before?  If so, do you remember which
>> > functions may be causing it (hg vs git speed under cygwin maybe?)
>> >
>> > 2) Any thoughts on trying to profile a prompt and/or shell script, if
>> > I pull it out of the prompt function
>>
>> Anytime you have to call an external process, you pay a multiplied
>> penalty on cygwin -- 1st linux process spawning, while costly, are
>> less than Windows, and 2) cygwin has to emulate the posix semantics
>> on windows -- to which it is not friendly.  If you could somehow cache
>> recent data in data struct and only updated ever 10 minutes with a
>> live call, that might help...?
>
> Yeah.  If you look in the standard fish_prompt function, it does some of that -
> cacheing calculated outputs that can be expected not to change for the duration
> of a single shell.  My prompt isn't as bad as yours, but there's a noticeable
> lag in Cygwin that's not there in Linux.
>
> Profiling would be a good idea, but I don't know how you do that with a fish
> script.  I suggest asking on the fish-users list.
>
> Good luck,
> Andrew
>
>
> --
> 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
>

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