From 021ff2ac062f1cfd52726c78e9a3956405001c6e Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Tue, 2 Oct 2018 23:24:51 -0400 Subject: fm-directory-view.c: Decrease minimum update interval. With a lower starting interval, the UI responds more quickly, and loading tends to complete faster. Ported from github.com/linuxmint/nemo/commit/61368e3fc33c0d662f45731d6bbb2a28fc5023ca Where these benchmarks resulted for Nemo: NEMO_BENCHMARK_LOADING=1 nemo /usr/bin with: Nemo startup time: 1.797009 seconds Folder load time: 0.937992 seconds Idle...Folder load time: 0.973764 seconds without: Nemo startup time: 2.054006 seconds Folder load time: 1.187159 seconds Idle...Folder load time: 1.219712 seconds Speedup on opening a Caja folder with many files was immediate and obvious --- src/file-manager/fm-directory-view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/file-manager/fm-directory-view.c') diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c index a4d718a5..90a0d594 100644 --- a/src/file-manager/fm-directory-view.c +++ b/src/file-manager/fm-directory-view.c @@ -88,9 +88,9 @@ #include /* Minimum starting update inverval */ -#define UPDATE_INTERVAL_MIN 100 +#define UPDATE_INTERVAL_MIN 50 /* Maximum update interval */ -#define UPDATE_INTERVAL_MAX 2000 +#define UPDATE_INTERVAL_MAX 2050 /* Amount of miliseconds the update interval is increased */ #define UPDATE_INTERVAL_INC 250 /* Interval at which the update interval is increased */ -- cgit v1.2.1