From f4d3b49e5d3b6e8c64aa92caa9c3666507e04b0a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 8 May 2023 13:59:48 -0600 Subject: [PATCH] [set] Micro-optimize iteration --- src/hb-bit-set.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hb-bit-set.hh b/src/hb-bit-set.hh index 187262fae..9110c92ea 100644 --- a/src/hb-bit-set.hh +++ b/src/hb-bit-set.hh @@ -623,6 +623,7 @@ struct hb_bit_set_t *codepoint = INVALID; return false; } + last_page_lookup = i; } const auto* pages_array = pages.arrayZ; @@ -632,7 +633,6 @@ struct hb_bit_set_t if (pages_array[current.index].next (codepoint)) { *codepoint += current.major * page_t::PAGE_BITS; - last_page_lookup = i; return true; } i++; @@ -649,7 +649,6 @@ struct hb_bit_set_t return true; } } - last_page_lookup = 0; *codepoint = INVALID; return false; }