From 28b44ac46a24f6987d2c2565e0ac72d5b2763d81 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 19 May 2022 15:01:56 -0600 Subject: [PATCH] [set] Switch set copy to vector operator = Slows it down currently. --- src/hb-bit-set.hh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/hb-bit-set.hh b/src/hb-bit-set.hh index 8197ebca4..6a59f77b6 100644 --- a/src/hb-bit-set.hh +++ b/src/hb-bit-set.hh @@ -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