mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
45db3bbf96
Summary: The new path does not calculate the complicated `successorssets`, and is known to make wez's repo operations significantly faster (which, I suspect is slowed by a very long chain). The new code is about 3x faster on my repo too: # before In [1]: list(repo.nodes('draft()')) In [2]: %time len(m.mutation.obsoletenodes(repo)) CPU times: user 246 ms, sys: 42.2 ms, total: 288 ms Wall time: 316 ms Out[2]: 1127 # after In [1]: list(repo.nodes('draft()')) In [2]: %time len(m.mutation.obsoletenodes(repo)) CPU times: user 74.3 ms, sys: 7.92 ms, total: 82.3 ms Wall time: 82.3 ms Out[2]: 1127 Reviewed By: markbt Differential Revision: D23036063 fbshipit-source-id: afd6ac122bb5d8d513b5cdc033e04d2c377286eb |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |