These patches optimize the hotspots in QEMU's "noop" build: - patch 1: parse_file_seq / strpbrk
- patch 2: find_char_unquote - patch 3: variable_hash_1 / variable_hash_2 - patches 4+5: handle_function On my laptop this goes from ~15.4 seconds to ~13.0 (a 15% improvement). (My employer has a blanket assignment on file). Thanks, Paolo Paolo Bonzini (5): optimize checking for globs use strchr for simple case of find_char_unquote use jhash for STRING_N_HASH remove MAP_PERCENT speedup parsing of functions Makefile.am | 6 ++--- Makefile.in | 19 ++++++------- function.c | 9 +++++-- hash.c | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ hash.h | 21 +++++---------- main.c | 5 +++- makeint.h | 3 ++- read-opt.c | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ read.c | 79 +++++++++++++++++++++++++++++++++++++++++------------- 9 files changed, 261 insertions(+), 49 deletions(-) create mode 100644 read-opt.c -- 2.7.4 _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make