##// END OF EJS Templates
revsets: reduce cost of outgoing in the optimizer
Matt Mackall -
r12351:b913232d default
parent child Browse files
Show More
@@ -562,9 +562,9 b' def optimize(x, small):'
562 elif op == 'func':
562 elif op == 'func':
563 f = getstring(x[1], _("not a symbol"))
563 f = getstring(x[1], _("not a symbol"))
564 wa, ta = optimize(x[2], small)
564 wa, ta = optimize(x[2], small)
565 if f in "grep date user author keyword branch file":
565 if f in "grep date user author keyword branch file outgoing":
566 w = 10 # slow
566 w = 10 # slow
567 elif f in "modifies adds removes outgoing":
567 elif f in "modifies adds removes":
568 w = 30 # slower
568 w = 30 # slower
569 elif f == "contains":
569 elif f == "contains":
570 w = 100 # very slow
570 w = 100 # very slow
General Comments 0
You need to be logged in to leave comments. Login now