How to speed up revset evaluation (short-circuit &)? #8336
-
|
Many of my revsets, e.g. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
Revsets like For instance, you might find more success with something like Another option would be to do something like |
Beta Was this translation helpful? Give feedback.
Revsets like
mine()andauthor_date()are evaluated as filters, so they will scan the entire history of the repo unless restricted using some other revset. Usually it's good to usex..,x..yorx::along with these revsets, because that prevents them from having to scan the entire history.For instance, you might find more success with something like
author_date(before:"7 days ago").. & mine(), because that tells the optimizer that it can stop scanning backwards when it finds a commit from before 7 days ago (whereas forauthor_date(after:"7 days ago") & mine()it can't stop early, because it's technically possible that a commit can have an older author date than its parent, such as if it …