bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing variables by reference conflicts with local


From: Eric Blake
Subject: Re: Passing variables by reference conflicts with local
Date: Tue, 04 May 2010 09:41:09 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Lightning/1.0b1 Thunderbird/3.0.4

On 05/04/2010 09:35 AM, Marc Herbert wrote:
> Are you are worried about the *cost* of the subshell? How can
> interactive completion be performance-sensitive?

Anything repetitive, done often enough, is observable even in an
interactive environment.  The bash-completion library of functions does
a _lot_ of repetitive work, and we're talking about some of the core
functions used within that library, possibly even hundreds of times over
the course of a single tab-completion event.  Minimizing subshells has
noticeable impact, particularly on systems like cygwin where fork() is
very slow (no more than 1000 times per second).

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]