From fd93917c9fda38583e939b3d519bdc1cb8b45317 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 9 Oct 2024 19:01:51 -0600 Subject: [PATCH] Adjust search limits --- src/tab.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tab.rs b/src/tab.rs index 284d05c..cec2172 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -76,8 +76,8 @@ use uzers::{get_group_by_gid, get_user_by_uid}; pub const DOUBLE_CLICK_DURATION: Duration = Duration::from_millis(500); pub const HOVER_DURATION: Duration = Duration::from_millis(1600); //TODO: best limit for search items -const MAX_SEARCH_LATENCY: Duration = Duration::from_millis(100); -const MAX_SEARCH_RESULTS: usize = 1000; +const MAX_SEARCH_LATENCY: Duration = Duration::from_millis(20); +const MAX_SEARCH_RESULTS: usize = 200; //TODO: adjust for locales? const DATE_TIME_FORMAT: &'static str = "%b %-d, %-Y, %-I:%M %p";