mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
a16c1c3e28
Summary: This is important for performance. Especially, `copies.py` uses it, and a non-lazy `ancestors` would slow down common operations like rebase or histedit or `log -p` because they all use `copies.py`. Before, `log -pr. -T. --profile>/dev/null`: ``` 2859 \ pathcopies copies.py:234 2858 | _forwardcopies copies.py:202 2858 | _committedforwardcopies copies.py:166 11 \ computeforwardmissing remotefilelog/__init__.py:508 3 \ _computeforwardmissing copies.py:156 7 \ prefetch fileserverclient.py:237 5 | __get__ util.py:982 5 | fileslog shallowrepo.py:47 5 | __init__ remotefilelog.py:465 5 | makeruststore remotefilelog.py:519 * 2836 \ ancestors changelog2.py:462 3 \ difffn patch.py:2696 3 | trydiff remotefilelog/__init__.py:667 3 | prefetch fileserverclient.py:237 Total time: 3114 ms ``` After: ``` 11 \ pathcopies copies.py:234 10 | _forwardcopies copies.py:202 10 | _committedforwardcopies copies.py:166 10 | computeforwardmissing remotefilelog/__init__.py:508 3 \ _computeforwardmissing copies.py:156 7 \ prefetch fileserverclient.py:237 5 | __get__ util.py:982 5 | fileslog shallowrepo.py:47 5 | __init__ remotefilelog.py:465 5 | makeruststore remotefilelog.py:519 3 \ difffn patch.py:2696 3 | trydiff remotefilelog/__init__.py:667 2 | prefetch fileserverclient.py:237 ``` Reviewed By: sfilipco Differential Revision: D23036057 fbshipit-source-id: 815cb167d38d0e5d1640ea6156b0891c72253933 |
||
---|---|---|
.. | ||
hgdemandimport | ||
hgext | ||
mercurial | ||
__init__.py | ||
__main__.py | ||
traceimport.py |