mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 23:41:03 +01:00
[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:
1 parent
c5a5334aea
commit
4bfa44407d
2 files changed
+4
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user