Revert "[gsubgpos] Reduce hb_set_t allocations"

This reverts commit 0b7f6d6cf0.

Not much benefit as the main allocations come from other places.
This commit is contained in:
Behdad Esfahbod 2023-01-05 14:48:20 -07:00
parent 3947cedd09
commit 167b7c6046
1 changed files with 1 additions and 8 deletions

View File

@ -145,12 +145,6 @@ struct hb_closure_context_t :
hb_set_t& push_cur_active_glyphs ()
{
if (set_pool)
{
auto &s = *active_glyphs_stack.push (set_pool.pop ());
s.clear ();
return s;
}
return *active_glyphs_stack.push ();
}
@ -159,7 +153,7 @@ struct hb_closure_context_t :
if (!active_glyphs_stack)
return false;
set_pool.push (active_glyphs_stack.pop ());
active_glyphs_stack.pop ();
return true;
}
@ -167,7 +161,6 @@ struct hb_closure_context_t :
hb_set_t *glyphs;
hb_set_t output[1];
hb_vector_t<hb_set_t> active_glyphs_stack;
hb_vector_t<hb_set_t> set_pool;
recurse_func_t recurse_func = nullptr;
unsigned int nesting_level_left;