From 0430ba1370a00d4f3581eaafa36c1446f8a681a2 Mon Sep 17 00:00:00 2001 From: "Matthew \"strager\" Glazar" Date: Tue, 7 Nov 2023 14:06:49 -0500 Subject: [PATCH] refactor(configuration): prefer Vector over std::vector Reduce our use of std::vector to reduce binary bloat: https://github.com/quick-lint/quick-lint-js/issues/689 --- src/quick-lint-js/configuration/configuration.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/quick-lint-js/configuration/configuration.h b/src/quick-lint-js/configuration/configuration.h index 830a3b0da0..95a949b0b2 100644 --- a/src/quick-lint-js/configuration/configuration.h +++ b/src/quick-lint-js/configuration/configuration.h @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -49,7 +50,8 @@ class Configuration { Monotonic_Allocator allocator_{"Configuration::allocator_"}; Global_Declared_Variable_Set globals_; - std::vector globals_to_remove_; + Vector globals_to_remove_{"Configuration::globals_to_remove_", + &this->allocator_}; bool did_add_globals_from_groups_ = false; std::array enabled_global_groups_; bool literally_anything_global_group_enabled_ = false;