diff options
author | lukefromdc <[email protected]> | 2018-10-02 23:24:51 -0400 |
---|---|---|
committer | lukefromdc <[email protected]> | 2018-10-02 23:25:57 -0400 |
commit | 021ff2ac062f1cfd52726c78e9a3956405001c6e (patch) | |
tree | 3b39c7d2286bb8385a2683d7b9bea6ba1acafa44 /src/file-manager/fm-directory-view.c | |
parent | 336f3510e113356e9eed9a19597f66d7a51dcd24 (diff) | |
download | caja-021ff2ac062f1cfd52726c78e9a3956405001c6e.tar.bz2 caja-021ff2ac062f1cfd52726c78e9a3956405001c6e.tar.xz |
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
Diffstat (limited to 'src/file-manager/fm-directory-view.c')
-rw-r--r-- | src/file-manager/fm-directory-view.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <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 */ |