From 83d75d5e9b32866e62e21ca155bb176b6d3fa81e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 28 Jun 2023 13:35:24 -0600 Subject: [PATCH] [glyf] always_inline consume_point 7% speedup in: BM_Font/draw_glyph/Roboto-Regular.ttf/hb --- src/OT/glyf/path-builder.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/OT/glyf/path-builder.hh b/src/OT/glyf/path-builder.hh index f7f732d33..3a415f062 100644 --- a/src/OT/glyf/path-builder.hh +++ b/src/OT/glyf/path-builder.hh @@ -37,6 +37,7 @@ struct path_builder_t * https://stackoverflow.com/a/20772557 * * Cubic support added. */ + __attribute__((always_inline)) void consume_point (const contour_point_t &point) { bool is_on_curve = point.flag & glyf_impl::SimpleGlyph::FLAG_ON_CURVE;