[set] Optimize is_subset()

pull/4229/head
Behdad Esfahbod 2 years ago
parent 45afbdff2c
commit 3416086de3
  1. 2
      src/hb-bit-set.hh

@ -402,7 +402,6 @@ struct hb_bit_set_t
uint32_t spm = page_map[spi].major;
uint32_t lpm = larger_set.page_map[lpi].major;
auto sp = page_at (spi);
auto lp = larger_set.page_at (lpi);
if (spm < lpm && !sp.is_empty ())
return false;
@ -410,6 +409,7 @@ struct hb_bit_set_t
if (lpm < spm)
continue;
auto lp = larger_set.page_at (lpi);
if (!sp.is_subset (lp))
return false;

Loading…
Cancel
Save