mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
e41e214a01
Summary: I encountered a 19s `hg sl` run where 13s were spent on `remotenames.updateaccessedbookmarks` (8 times). {F225347899} The filesystem is unusually slow since the it's nearly full. However, the updates are not really necessary since I'm not accessing more remote names. Accessing one bookmark via smartlog rewrites the entire accessed file, which is O(N^2) and undesirable. Improve it by skipping writing if nothing has changed. In the future we might want to optimize it further by: - Only update (and do ui.log) "accessedbookmarks" at most once per command. - Potentially drop the "accessedbookmarks" tracking by using "remotenames" directly - everything in "remotenames" is accessed. Reviewed By: markbt Differential Revision: D19191528 fbshipit-source-id: 46635d4e5c9d0034ace9cdafc1f42a4512aa8774 |
||
---|---|---|
.. | ||
contrib | ||
distutils_rust | ||
doc | ||
edenscm | ||
edenscmnative | ||
exec | ||
i18n | ||
lib | ||
newdoc | ||
slides | ||
tests | ||
.editorconfig | ||
.flake8 | ||
.gitignore | ||
COPYING | ||
gen_version.py | ||
hgeditor | ||
Makefile | ||
README.rst | ||
setup.py |
Mercurial ========= Mercurial is a fast, easy to use, distributed revision control tool for software developers. Basic install:: $ make # see install targets $ make install # do a system-wide install $ hg debuginstall # sanity-check setup $ hg # see help Running without installing:: $ make local # build for inplace usage $ ./hg --version # should show the latest version See https://mercurial-scm.org/ for detailed installation instructions, platform-specific notes, and Mercurial user information.