mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-28 09:09:13 +01:00
[aat-map] Micro-optimize a malloc
This commit is contained in:
1 parent
3e27038fca
commit
e99e6538d9
1 file changed
+1
@@ -88,6 +88,7 @@ hb_aat_map_builder_t::compile (hb_aat_map_t &m)
|
||||
|
||||
/* Sort features by start/end events. */
|
||||
hb_vector_t<feature_event_t> feature_events;
|
||||
feature_events.alloc (features.length * 2 + 1, true);
|
||||
for (unsigned int i = 0; i < features.length; i++)
|
||||
{
|
||||
auto &feature = features.arrayZ[i];
|
||||
|
||||
Reference in new issue
Block a user