sapling/contrib
Durham Goode ce250e375a revset: lower weight for _intlist function
The histedit command uses a revset like:

(_intlist('1234\x001235')) and merge()

Previously the optimizer gave a weight of 1.5 to the _intlist side (1 for the
function, 0.5 for the string) which caused it to process the merge() side first.
This caused it to evaluate merge against every commit in the repo, which took
2.5 seconds on a large repo.

I changed the weight of _intlist to 0, since it's a trivial calculation, which
makes it process intlist first, which makes merge apply only to the revs in the
list. Which makes the revset take 0.15 seconds now. Cutting off 2.4 seconds off
our histedit performance.

>From the revset benchmark:
revset #25: (_intlist('20000\x0020001')) and merge()
0) obsolete feature not enabled but 54243 markers found!
! wall 0.036767 comb 0.040000 user 0.040000 sys 0.000000 (best of 100)
1) obsolete feature not enabled but 54243 markers found!
! wall 0.000198 comb 0.000000 user 0.000000 sys 0.000000 (best of 9084)
2014-09-12 14:21:18 -07:00
..
docker dockerrpm: create a yum/dnf repo from the generated rpms 2014-08-31 13:41:09 +02:00
hgfixes fix_bytes: loosen blacklist matching requirements 2014-05-10 14:54:39 -07:00
hgsh backout of e4cb9628354c 2011-01-27 11:15:08 +01:00
macosx Make Readme.html reference current OS X release 2010-03-06 21:29:02 -08:00
plan9 hgrc.d: separate namespace for mercurial scripts 9diff and 9mail 2013-08-15 21:35:56 -04:00
vagrant contrib/vagrant: use Vagrant for running tests on virtual machine 2014-07-05 16:32:28 +03:00
vim vim: use try catch in vim plugin to avoid conflicts 2014-05-03 19:11:51 +04:30
win32 cleanup: make sure we always access members of imported modules 2014-08-15 04:37:45 +02:00
wix wix: contrib/sample.hgrc is no more 2014-09-15 09:36:12 -05:00
bash_completion bash_completion: add -l|--list support for shelve 2014-06-06 00:21:46 -05:00
buildrpm buildrpm: introduce --rpmdir instead of using hardcoded rpmbuild dir 2014-08-31 13:40:53 +02:00
casesmash.py cleanup: drop unused variables and an unused import 2013-07-01 20:48:56 +02:00
check-code.py check-code: look for misuse of __bool__ 2014-09-17 00:28:37 +09:00
check-commit check-commit: spot growing whitespace 2014-08-07 14:57:20 -05:00
debugcmdserver.py cleanup: "raise SomeException()" -> "raise SomeException" 2012-05-12 16:00:58 +02:00
debugshell.py debugshell: declare command using decorator 2014-05-04 21:19:31 -07:00
dockerrpm dockerrpm: create a yum/dnf repo from the generated rpms 2014-08-31 13:41:09 +02:00
dumprevlog rename util.set_binary to setbinary 2011-05-06 15:25:35 +02:00
editmerge contrib: don't hardcode path to bash interpreter 2014-03-26 11:59:13 +01:00
hg-ssh hg-ssh: read-only flag 2012-05-22 15:17:37 -07:00
hg-test-mode.el hg-test-mode: make exit code highlight work again 2014-08-12 12:53:23 -05:00
hgk hgk: add .diff extension when exporting commits 2014-03-25 22:47:59 +01:00
hgperf contrib: add "hgperf" command to measure performance of commands easily 2014-02-15 19:51:20 +09:00
hgweb.fcgi mq: add a warning about uncommitted changes for qfinish 2011-11-10 15:40:34 -06:00
hgweb.wsgi mq: add a warning about uncommitted changes for qfinish 2011-11-10 15:40:34 -06:00
import-checker.py import-checker: handle standard modules with arch in the filename 2014-02-07 02:59:46 +01:00
lock-checker.py util: introduce util.debugstacktrace for showing a stack trace without crashing 2014-01-12 23:28:21 +01:00
logo-droplets.svg logo: clean up source file with scour 2010-04-05 14:33:41 -05:00
Makefile.python contrib/Makefile.python: build local Python from source 2013-02-10 00:11:45 +01:00
memory.py many, many trivial check-code fixups 2010-01-25 00:05:27 -06:00
mercurial.el en-us: penalize 2012-08-17 13:58:19 -07:00
mercurial.spec fedora: remove sample.hgrc from shipped files 2014-09-02 14:10:08 -07:00
mergetools.hgrc mergetools: add --nofork option to gvimdiff.diffargs for extdiff 2014-07-12 20:07:24 +09:00
mq.el Remove FSF mailing address from GPL headers 2012-01-06 16:27:13 +01:00
perf.py perf: unroll the result in perfrevset 2014-03-26 17:25:11 -07:00
pylintrc codingstyle: remove trailing spaces in various text files 2013-04-17 03:40:18 +02:00
python-hook-examples.py misc: replace .parents()[0] with p1() 2011-04-04 16:21:59 -05:00
revsetbenchmarks.py whitespace: nuke triple blank lines in **.py 2014-08-07 14:58:12 -05:00
revsetbenchmarks.txt revset: lower weight for _intlist function 2014-09-12 14:21:18 -07:00
simplemerge simplemerge: burn "minimal" feature to the ground 2014-08-05 14:56:25 -07:00
synthrepo.py contrib/synthrepo: return None to delete files on commit, don't raise IOError 2014-09-15 16:07:54 -04:00
tcsh_completion contrib: update tcsh_completion for Mercurial 1.8 2011-03-01 07:28:20 +01:00
tcsh_completion_build.sh contrib: update tcsh_completion for Mercurial 1.8 2011-03-01 07:28:20 +01:00
undumprevlog tests: run check-code on Python files without .py extension 2013-04-17 03:39:36 +02:00
xml.rnc Added RelaxNG schema for hg log XML output format 2009-12-30 02:44:37 +01:00
zsh_completion zsh_completion: complete all files for commit/backout --logfile 2013-04-17 21:06:48 +04:00