From 17092a67cc6005e579281840eb8a20c64a825d50 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 24 Dec 2025 14:17:19 -0700 Subject: [PATCH] [calculate-scalar] A bit more speedup 5% speedup in varc-hanzi drawing. No slowdown on GoogleSansFlex. --- src/hb-ot-var-common.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hb-ot-var-common.hh b/src/hb-ot-var-common.hh index d903ac277..9c8b5c9a3 100644 --- a/src/hb-ot-var-common.hh +++ b/src/hb-ot-var-common.hh @@ -165,8 +165,12 @@ struct TupleVariationHeader #ifndef HB_OPTIMIZE_SIZE #if HB_FAST_NUM_ACCESS if (skip) + { while (i + 4 < coord_count && * (HBUINT64LE *) &peak_tuple[i] == 0) i += 4; + while (i + 1 < coord_count && peak_tuple[i].to_int () == 0) + i += 1; + } #endif #endif