[TupleValues] Inline decompile_deltas (#5651)

8% speedup in GoogleSansFlex heavy variations test.

$ b/perf/benchmark-font GSF.ttf --benchmark_filter=draw.*var/ot --variations=ROND=40,wght=500,wdth=50,opsz=54,slnt=-10,GRAD=50
This commit is contained in:
Behdad Esfahbod authored and GitHub committed 2025-11-23 21:27:47 -07:00
1 parent c5a5334aea
commit 4bfa44407d
2 files changed
+4

No files matched your search

+3
View File
@@ -1711,6 +1711,9 @@ struct TupleValues
}
template <typename T>
#ifndef HB_OPTIMIZE_SIZE
HB_ALWAYS_INLINE
#endif
static bool decompile (const HBUINT8 *&p /* IN/OUT */,
hb_vector_t<T> &values /* IN/OUT */,
const HBUINT8 *end,
+1
View File
@@ -1534,6 +1534,7 @@ struct TupleVariationData
}
template <typename T>
HB_ALWAYS_INLINE
static bool decompile_deltas (const HBUINT8 *&p /* IN/OUT */,
hb_vector_t<T> &deltas /* IN/OUT */,
const HBUINT8 *end,