From d960ee32ac11c28ee73cf55181601eb146a8e2b6 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 21 Dec 2025 22:06:06 -0700 Subject: [PATCH] [TupleValues] Disable a "fastpath" --- src/hb-open-type.hh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index 94a5c0351..4c2343dfa 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -2040,7 +2040,10 @@ struct TupleValues } #ifndef HB_OPTIMIZE_SIZE - if (scale == 1.0f) + // The following branch is supposed to speed things up by avoiding + // the multiplication in _add_to<> if scale is 1.0f. + // But in practice it seems to bloat the code and slow things down. + if (false && scale == 1.0f) _add_to (out); else #endif