[bit-page] Speed up is_empty()

pull/4317/head
Behdad Esfahbod 2 years ago
parent 2f4ed5e939
commit 9b9a9c6f4a
  1. 1
      src/hb-bit-page.hh

@ -99,6 +99,7 @@ struct hb_bit_page_t
bool is_empty () const
{
if (has_population ()) return !population;
return
+ hb_iter (v)
| hb_none

Loading…
Cancel
Save