From: Willy Tarreau Date: Mon, 30 Nov 2026 18:55:29 +0000 (+0100) Subject: OPTIM: acl: always keep the local sample 64-byte aligned X-Git-Url: https://git.kaiwu.me/http/%22../doc/static/%7B@url%7D?a=commitdiff_plain;h=21a10733ae4d95309895d44c8e71eea6a30fb37d;p=haproxy.git OPTIM: acl: always keep the local sample 64-byte aligned Better have this sample aligned in the stack, it's used for literally every match and it experiences a memset(0) for each of them. Having it aligned encourages the compiler to use SIMD instructions instead of rep stos to clear it. --- diff --git a/src/acl.c b/src/acl.c index 40043f537..806aab4cf 100644 --- a/src/acl.c +++ b/src/acl.c @@ -1048,7 +1048,7 @@ enum acl_test_res acl_exec_cond(struct acl_cond *cond, struct proxy *px, struct struct acl_term *term; struct acl_expr *expr; struct acl *acl; - struct sample smp; + struct sample smp ALIGNED(64); enum acl_test_res acl_res, suite_res, cond_res; /* ACLs are iterated over all values, so let's always set the flag to