On Tue, Dec 9, 2014 at 8:53 AM, Nguyễn Thái Ngọc Duy <pclouds@xxxxxxxxx> wrote: > Keep track of all recognized macros in the new "maybe_macro" field. > This this field is true, it _may_ be a macro (depending on what's in s/This this/If this/ > the current attr stack). But if the field is false, it's definitely > not a macro, no need to go through the whole attr stack in > macroexpand_one() to search for one. > > Without this, "git grep abcdefghi" on git.git hits the inner loop in > macroexpand_one() about 2500 times. With this, it's about 60 times. > > Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@xxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html