From: Paolo Bonzini Date: Fri, 11 Aug 2017 11:44:33 +0000 (+0200) Subject: Do not use STOP_SET for singleton compares. X-Git-Tag: 4.2.90~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c44ca26830e29b9de8297719bc2bd05c16bf8f6;p=thirdparty%2Fmake.git 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. --- diff --git a/read.c b/read.c index 2cd497a4..db1a42d0 100644 --- a/read.c +++ b/read.c @@ -2249,7 +2249,7 @@ find_map_unquote (char *string, int stopmap) break; /* If we stopped due to a variable reference, skip over its contents. */ - if (STOP_SET (*p, MAP_VARIABLE)) + if (*p == '$') { char openparen = p[1];