diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-27 19:24:35 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-27 19:24:35 +1000 |
commit | 14b9689b6d4f4ad5276c88130dc6e449bedc0709 (patch) | |
tree | 829e760821fb887470ba2a820d309db1428f7f17 /source/core/StarDirectives.cpp | |
parent | c9e889723b7af832322d178975e6e440d6cd3ae5 (diff) |
Change formatting to use fmtlib (STILL NEED TO CHANGE TO FMT SYNTAX!)
Diffstat (limited to 'source/core/StarDirectives.cpp')
-rw-r--r-- | source/core/StarDirectives.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/core/StarDirectives.cpp b/source/core/StarDirectives.cpp index dc1765c..bf3dcc1 100644 --- a/source/core/StarDirectives.cpp +++ b/source/core/StarDirectives.cpp @@ -101,6 +101,10 @@ void Directives::parse(String&& directives) { return; shared = std::make_shared<Shared const>(move(newList), move(directives), prefix); + if (view.size() < 1000) { // Pre-load short enough directives + for (auto& entry : shared->entries) + entry.loadOperation(*shared); + } } String Directives::string() const { |