Skip to content

Commit 021ff2a

Browse files
committed
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
1 parent 336f351 commit 021ff2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/file-manager/fm-directory-view.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@
8888
#include <libmate-desktop/mate-desktop-utils.h>
8989

9090
/* Minimum starting update inverval */
91-
#define UPDATE_INTERVAL_MIN 100
91+
#define UPDATE_INTERVAL_MIN 50
9292
/* Maximum update interval */
93-
#define UPDATE_INTERVAL_MAX 2000
93+
#define UPDATE_INTERVAL_MAX 2050
9494
/* Amount of miliseconds the update interval is increased */
9595
#define UPDATE_INTERVAL_INC 250
9696
/* Interval at which the update interval is increased */

0 commit comments

Comments
 (0)