diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-01-17 15:31:23 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-01-17 15:31:23 +1100 |
| commit | 1f5249de6f7e81aa6ff2586e386f526676e67c81 (patch) | |
| tree | 5fcc9737e71b3b6b20b7156ea4e759b558f732a3 /src/lua/include/property.hpp | |
| parent | 08d16e858075e66df1bae3fea9d955e1b6cb73a9 (diff) | |
| download | tangara-fw-1f5249de6f7e81aa6ff2586e386f526676e67c81.tar.gz | |
shift some long-lived allocs into spi ram
Diffstat (limited to 'src/lua/include/property.hpp')
| -rw-r--r-- | src/lua/include/property.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/include/property.hpp b/src/lua/include/property.hpp index 9c5129ae..425cc15c 100644 --- a/src/lua/include/property.hpp +++ b/src/lua/include/property.hpp @@ -48,7 +48,7 @@ class Property { private: LuaValue value_; std::optional<std::function<bool(const LuaValue&)>> cb_; - std::vector<std::pair<lua_State*, int>> bindings_; + std::pmr::vector<std::pair<lua_State*, int>> bindings_; }; class PropertyBindings { @@ -61,7 +61,7 @@ class PropertyBindings { auto GetFunction(size_t i) -> const LuaFunction&; private: - std::vector<LuaFunction> functions_; + std::pmr::vector<LuaFunction> functions_; }; } // namespace lua |
