Mercurial > hg
annotate tests/helper-runtests.sh @ 40710:50a64c321c1e
branchmap: build the revbranchcache._namesreverse() only when required
On big repositories with a lot of named branches and that also increasing over
time, building of this dict can be expensive and shows up in profile.
For our internal repository, this saves ~0.05 seconds.
Thanks to Yuya for suggesting using util.propertycache() and
util.clearcachedproperty().
Differential Revision: https://phab.mercurial-scm.org/D5291
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Wed, 21 Nov 2018 17:17:26 +0300 |
parents | 054bcdad6042 |
children |
rev | line source |
---|---|
29220
054bcdad6042
tests: refactor run-tests helpers
timeless <timeless@mozdev.org>
parents:
diff
changeset
|
1 # |
054bcdad6042
tests: refactor run-tests helpers
timeless <timeless@mozdev.org>
parents:
diff
changeset
|
2 # Avoid interference from actual test env: |
054bcdad6042
tests: refactor run-tests helpers
timeless <timeless@mozdev.org>
parents:
diff
changeset
|
3 |
054bcdad6042
tests: refactor run-tests helpers
timeless <timeless@mozdev.org>
parents:
diff
changeset
|
4 unset HGTEST_JOBS |
054bcdad6042
tests: refactor run-tests helpers
timeless <timeless@mozdev.org>
parents:
diff
changeset
|
5 unset HGTEST_TIMEOUT |
054bcdad6042
tests: refactor run-tests helpers
timeless <timeless@mozdev.org>
parents:
diff
changeset
|
6 unset HGTEST_PORT |
054bcdad6042
tests: refactor run-tests helpers
timeless <timeless@mozdev.org>
parents:
diff
changeset
|
7 unset HGTEST_SHELL |