Skip to content
Permalink
Browse files

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
  • Loading branch information...
lukefromdc committed Oct 3, 2018
1 parent 336f351 commit 021ff2ac062f1cfd52726c78e9a3956405001c6e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/file-manager/fm-directory-view.c
@@ -88,9 +88,9 @@
#include <libmate-desktop/mate-desktop-utils.h>

/* 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 */

0 comments on commit 021ff2a

Please sign in to comment.
You can’t perform that action at this time.