From f68193a00a3b57c90260043981a9828cc5f9286f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 9 Feb 2025 11:43:07 +0000 Subject: [PATCH] [glyf] Use direct access to points array Not necessary faster. Prep'ing for next change. --- src/OT/glyf/glyf.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/OT/glyf/glyf.hh b/src/OT/glyf/glyf.hh index f346ae05d..7866b70a6 100644 --- a/src/OT/glyf/glyf.hh +++ b/src/OT/glyf/glyf.hh @@ -229,8 +229,9 @@ struct glyf_accelerator_t if (consumer.is_consuming_contour_points ()) { - for (auto &point : all_points.as_array ().sub_array (0, count)) - consumer.consume_point (point); + auto *points = all_points.arrayZ; + for (unsigned i = 0; i < count; i++) + consumer.consume_point (points[i]); consumer.points_end (); }