Date: Sat, 5 Jan 2019 11:49:55 -0800 From: Enji Cooper <yaneurabeya@gmail.com> To: Andrew Gallatin <gallatin@freebsd.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r342774 - head/sys/conf Message-ID: <5E026C13-9D49-4F34-A0FC-8120CF214B4E@gmail.com> In-Reply-To: <201901041838.x04IcSXf074418@repo.freebsd.org> References: <201901041838.x04IcSXf074418@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Jan 4, 2019, at 10:38, Andrew Gallatin <gallatin@freebsd.org> wrote: >=20 > Author: gallatin > Date: Fri Jan 4 18:38:27 2019 > New Revision: 342774 > URL: https://svnweb.freebsd.org/changeset/base/342774 >=20 > Log: > Limit git history searches in newvers.sh >=20 > newvers.sh takes upwards of 4-5 seconds to complete on trees checked > out from github, due to searching the entire history for non-existent > git-svn metadata. Similarly, if one does not check out notes, we > again search the entire history for notes. That makes newvers.sh very > slow for many github users. >=20 > To fix this in a fair way, limit the history search to the last 10K > commits: if you're more than 10K commits out of sync, then you've > forked the project, and our SVN rev is no longer very important to you. >=20 > Due to how git implements --grep in conjunction with -n, --grep has been > removed for performance reasons (git does not seem to limit its search > to the -n limit in this case, and takes just as long as it did with no > limit). Wonderful =E2=80=94 thank you Andrew :)!! -Enji=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5E026C13-9D49-4F34-A0FC-8120CF214B4E>