From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26955 invoked from network); 27 Jun 2021 09:14:30 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 27 Jun 2021 09:14:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-ID:Date:Content-ID: Content-Type:MIME-Version:Subject:To:References:From:In-reply-to:cc:Reply-To: Content-Transfer-Encoding:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=QtuufgARw1XZif8zzbsFvWu5+HlT406ESOkmA/e5wM8=; b=1pMsE/JBP0Q5GrSk1EPLHH58j+ LpE1taufjDzrykV1195+Sglhke7EmM3NijZPqO1QQnzJy3tKDSnQMERqRXCXi36k2GupMFi/w77Gt wg2+WTMG6WnYSGcRpMpOEiMg+risQFaePMWEdHGjzxhCzGxmeRkf28kL4U6P1QuqMaETqkDbsvSe0 eJHJ64MaS1eiHLYCM46Hh7YPIzUAuikxrcZTRsrO5qiYnK8dKqNXyoBCDbmzWvynjKL3iOZtOzYZc Anq+BVKt8ocMBpPUAM/J3v0J4mYfGitSmpnee+Hz2mk1JKHG1y8k3pu9/ITmliNk52BAiORpeyTcf 25Fn0k9g==; Received: from authenticated user by zero.zsh.org with local id 1lxQs1-0007Sv-1G; Sun, 27 Jun 2021 09:14:29 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lxQrS-0007Ad-G4; Sun, 27 Jun 2021 09:13:54 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.94.2) (envelope-from ) id 1lxQrR-000Oyt-Mm; Sun, 27 Jun 2021 11:13:53 +0200 cc: zsh-workers@zsh.org In-reply-to: <20210626230903.43ba5516@ratham> From: Oliver Kiddle References: <20210626230903.43ba5516@ratham> To: "Suraj N. Kurapati" Subject: Re: [PR] vcs_info-examples: optimize +vi-git-untracked() #76 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <96029.1624785233.1@hydra> Date: Sun, 27 Jun 2021 11:13:53 +0200 Message-ID: <96030-1624785233.702771@PUMF.Qbc8.FJES> X-Seq: 49130 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: "Suraj N. Kurapati" wrote: > I have submitted pull-request #76 on the GitHub repo regarding: > > https://github.com/zsh-users/zsh/pull/76 > > Speed up the prompt on large and/or deep working directories by > stopping grep(1) as soon as it finds a single match, with `-q`. The -q option to grep isn't strictly portable. It is certainly lacking on Solaris. It is more reliable with egrep but that may not be faster. It does seem to be there on Linux and the main BSDs so I don't know whether we should still care about this. Oliver