zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <opk@zsh.org>
To: "Suraj N. Kurapati" <sunaku@riseup.net>
Cc: zsh-workers@zsh.org
Subject: Re: [PR] vcs_info-examples: optimize +vi-git-untracked() #76
Date: Sun, 27 Jun 2021 11:13:53 +0200	[thread overview]
Message-ID: <96030-1624785233.702771@PUMF.Qbc8.FJES> (raw)
In-Reply-To: <20210626230903.43ba5516@ratham>

"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


  reply	other threads:[~2021-06-27  9:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-27  6:09 Suraj N. Kurapati
2021-06-27  9:13 ` Oliver Kiddle [this message]
2021-06-27 10:04   ` Frank Terbeck
2021-06-28 17:16   ` Suraj N. Kurapati
2021-06-27 13:03 ` Roman Perepelitsa
2021-06-28 22:57   ` Suraj N. Kurapati
2021-06-29  7:16     ` Roman Perepelitsa
2021-08-04  8:55     ` Roman Neuhauser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=96030-1624785233.702771@PUMF.Qbc8.FJES \
    --to=opk@zsh.org \
    --cc=sunaku@riseup.net \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).