[set] Switch set copy to vector operator =

Slows it down currently.
This commit is contained in:
Behdad Esfahbod 2022-05-19 15:01:56 -06:00
parent 37d3275dec
commit 28b44ac46a
1 changed files with 2 additions and 3 deletions

View File

@ -373,9 +373,8 @@ struct hb_bit_set_t
population = other.population;
hash_ = other.hash_;
/* TODO switch to vector operator =. */
hb_memcpy ((void *) pages, (const void *) other.pages, count * pages.item_size);
hb_memcpy ((void *) page_map, (const void *) other.page_map, count * page_map.item_size);
page_map = other.page_map;
pages = other.pages;
}
bool is_equal (const hb_bit_set_t &other) const