summaryrefslogtreecommitdiffstats
path: root/src/conf/conf.rs
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2021-02-22 13:35:56 +0100
committerCanop <cano.petrole@gmail.com>2021-02-22 13:35:56 +0100
commit4e035c40bd41a2f15adf1dae9953578440ef5084 (patch)
tree5473a67b69cf556b748774b17a59c04a427660f8 /src/conf/conf.rs
parentda67eb50e36fd55be27a1e6865c38b2eb03ff1b1 (diff)
use ahash of some of the hashmaps with big keys
Diffstat (limited to 'src/conf/conf.rs')
-rw-r--r--src/conf/conf.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/conf/conf.rs b/src/conf/conf.rs
index 4edbd3e..2ac0399 100644
--- a/src/conf/conf.rs
+++ b/src/conf/conf.rs
@@ -10,6 +10,7 @@ use {
path::{Glob, SpecialHandling},
},
crossterm::style::Attribute,
+ ahash::AHashMap,
fnv::FnvHashMap,
serde::Deserialize,
std::{
@@ -50,10 +51,10 @@ pub struct Conf {
#[serde(default)]
pub verbs: Vec<VerbConf>,
- pub skin: Option<FnvHashMap<String, SkinEntry>>,
+ pub skin: Option<AHashMap<String, SkinEntry>>,
#[serde(default, alias="special-paths")]
- pub special_paths: FnvHashMap<Glob, SpecialHandling>,
+ pub special_paths: AHashMap<Glob, SpecialHandling>,
#[serde(alias="search-modes")]
pub search_modes: Option<FnvHashMap<String, String>>,
@@ -68,7 +69,7 @@ pub struct Conf {
pub show_selection_mark: Option<bool>,
#[serde(default, alias="ext-colors")]
- pub ext_colors: FnvHashMap<String, String>,
+ pub ext_colors: AHashMap<String, String>,
#[serde(alias="syntax-theme")]
pub syntax_theme: Option<String>,