summaryrefslogtreecommitdiffstats
path: root/src/display
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2020-11-30 22:23:07 +0100
committerCanop <cano.petrole@gmail.com>2020-11-30 22:23:07 +0100
commit4f0632a74bfc11e3eebcc04ae6fede1a690ea606 (patch)
tree5e40ca065448352f683af0d850fb9312de9b7f43 /src/display
parent2fd09de426e8f7623180a834244330a0ec3f069a (diff)
better cache management for dir size computation
Makes it faster in 2 common cases: - compute the root size when children already computed - going up one level in the tree
Diffstat (limited to 'src/display')
-rw-r--r--src/display/col.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display/col.rs b/src/display/col.rs
index 799207c..68446b2 100644
--- a/src/display/col.rs
+++ b/src/display/col.rs
@@ -99,8 +99,8 @@ pub type Cols = [Col;COLS_COUNT];
pub static DEFAULT_COLS: Cols = [
Col::Mark,
Col::Git,
- Col::Permission,
Col::Date,
+ Col::Permission,
Col::Size,
Col::Count,
Col::Branch,