mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-12-27 23:06:53 +00:00
Performance improvement.
This commit is contained in:
parent
5973926ce6
commit
48045f99e5
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2009-09-25 Boris Kolpackov <boris@codesynthesis.com>
|
||||||
|
|
||||||
|
* implicit.c (pattern_search): Terminate early if we haven't
|
||||||
|
found any rules to try (performance improvement).
|
||||||
|
|
||||||
2009-09-25 Boris Kolpackov <boris@codesynthesis.com>
|
2009-09-25 Boris Kolpackov <boris@codesynthesis.com>
|
||||||
|
|
||||||
* implicit.c (pattern_search): Merge three parallel arrays,
|
* implicit.c (pattern_search): Merge three parallel arrays,
|
||||||
|
|
|
@ -390,6 +390,10 @@ pattern_search (struct file *file, int archive,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Bail out early if we haven't found any rules. */
|
||||||
|
if (nrules == 0)
|
||||||
|
goto done;
|
||||||
|
|
||||||
/* If we have found a matching rule that won't match all filenames,
|
/* If we have found a matching rule that won't match all filenames,
|
||||||
retroactively reject any non-"terminal" rules that do always match. */
|
retroactively reject any non-"terminal" rules that do always match. */
|
||||||
if (specific_rule_matched)
|
if (specific_rule_matched)
|
||||||
|
|
Loading…
Reference in a new issue