mirror of
https://github.com/mirror/make.git
synced 2025-03-26 11:12:48 +08:00
Do not use STOP_SET for singleton compares.
Compare against '$' directly rather than using MAP_VARIABLE. This saves ~10% for find_map_function, which is the top hotspot in QEMU's no-op build. The build is sped up overall by about 1.5% more (from 11.1s to 10.95s). * read.c (find_map_function): Do not compare against singleton sets.
This commit is contained in:
parent
b280989ab7
commit
0c44ca2683
2
read.c
2
read.c
@ -2249,7 +2249,7 @@ find_map_unquote (char *string, int stopmap)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
/* If we stopped due to a variable reference, skip over its contents. */
|
/* If we stopped due to a variable reference, skip over its contents. */
|
||||||
if (STOP_SET (*p, MAP_VARIABLE))
|
if (*p == '$')
|
||||||
{
|
{
|
||||||
char openparen = p[1];
|
char openparen = p[1];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user