From 2c358e705bbde855b12780be86ef19501a62dfed Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Tue, 3 Mar 2026 07:57:33 -0800 Subject: [WARP] Server-side constraint matching Reduce networked functions by constraining on the returned set of functions on the server --- plugins/warp/src/plugin/settings.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/warp/src/plugin/settings.rs') diff --git a/plugins/warp/src/plugin/settings.rs b/plugins/warp/src/plugin/settings.rs index 6469be0f..896bee7f 100644 --- a/plugins/warp/src/plugin/settings.rs +++ b/plugins/warp/src/plugin/settings.rs @@ -40,7 +40,7 @@ pub struct PluginSettings { impl PluginSettings { pub const ALLOWED_SOURCE_TAGS_DEFAULT: [&'static str; 2] = ["official", "trusted"]; pub const ALLOWED_SOURCE_TAGS_SETTING: &'static str = "warp.fetcher.allowedSourceTags"; - pub const FETCH_BATCH_SIZE_DEFAULT: usize = 100; + pub const FETCH_BATCH_SIZE_DEFAULT: usize = 10000; pub const FETCH_BATCH_SIZE_SETTING: &'static str = "warp.fetcher.fetchBatchSize"; pub const LOAD_BUNDLED_FILES_DEFAULT: bool = true; pub const LOAD_BUNDLED_FILES_SETTING: &'static str = "warp.container.loadBundledFiles"; @@ -81,8 +81,8 @@ impl PluginSettings { let fetch_size_props = json!({ "title" : "Fetch Batch Limit", "type" : "number", - "minValue" : 1, - "maxValue" : 1000, + "minValue" : 100, + "maxValue" : 20000, "default" : Self::FETCH_BATCH_SIZE_DEFAULT, "description" : "The maximum number of functions to fetch in a single batch. This is used to limit the amount of functions to fetch at once, lowering this value will make the fetch process more comprehensive at the cost of more network requests.", "ignore" : [], -- cgit v1.3.1