From 499442d7ef9242ce1bb329d69ea13ee6d340421c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sun, 23 Aug 2026 15:05:36 +0200 Subject: [PATCH] Further reduce stamped out types for each templated test case This provides further speed-ups for TUs with many test cases templated over the same set of types. For especially test-heavy (but still realistic) TUs, the speed up is up to 20%. --- src/catch2/internal/catch_preprocessor.hpp | 57 ++++++++++++++----- .../internal/catch_template_test_registry.hpp | 2 + 2 files changed, 44 insertions(+), 15 deletions(-) diff --git a/src/catch2/internal/catch_preprocessor.hpp b/src/catch2/internal/catch_preprocessor.hpp index c112905d..b7336c47 100644 --- a/src/catch2/internal/catch_preprocessor.hpp +++ b/src/catch2/internal/catch_preprocessor.hpp @@ -51,6 +51,23 @@ namespace Catch { struct convert; template