Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarDirectives.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-27 19:24:35 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-27 19:24:35 +1000
commit14b9689b6d4f4ad5276c88130dc6e449bedc0709 (patch)
tree829e760821fb887470ba2a820d309db1428f7f17 /source/core/StarDirectives.cpp
parentc9e889723b7af832322d178975e6e440d6cd3ae5 (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.cpp4
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 {