From f0ae584473e423a4fc6d88a15f86dbe0cddcfe2d Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Wed, 30 Sep 2026 13:31:34 +0200 Subject: [PATCH] Optimize hash performance with custom compiler flags --- Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.am b/Makefile.am index 471f18b5..81f2e5cb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -219,6 +219,9 @@ $(CLI_PREFIX)touch.$(OBJEXT): $(CLI_INCLUDES) $(CLI_PREFIX)unixapp.$(OBJEXT): $(CLI_INCLUDES) $(CLI_PREFIX)util.$(OBJEXT): $(CLI_INCLUDES) +# Use -O3 -funroll-loops to optimize the hash implementations included by util.c +$(CLI_PREFIX)util.$(OBJEXT): CFLAGS += -O3 -funroll-loops + # Add the .version file in the distribution dist-hook: $(srcdir)/autover.sh > $(distdir)/.version