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 ebl...@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature