From de6f52ab81aa14cd1201420e5293566603febb27 Mon Sep 17 00:00:00 2001 From: mars Date: Thu, 6 Oct 2022 19:27:14 -0600 Subject: [PATCH] Use fnv for caches --- Cargo.lock | 1 + Cargo.toml | 1 + src/graphics.rs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 4d62309..1c353ed 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -874,6 +874,7 @@ dependencies = [ "bdf", "confy", "env_logger", + "fnv", "hex_color", "log", "mio-extras", diff --git a/Cargo.toml b/Cargo.toml index 234bb22..dd965d1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,7 @@ description = "A bare-bones terminal emulator that is not meant to be taken too alacritty_terminal = "0.16" confy = "0.5" env_logger = "0.9" +fnv = "1.0" hex_color = { version = "2", features = ["serde"] } log = "0.4" mio-extras = "2" diff --git a/src/graphics.rs b/src/graphics.rs index 48a25c3..68fe945 100644 --- a/src/graphics.rs +++ b/src/graphics.rs @@ -2,8 +2,8 @@ use alacritty_terminal::ansi::{Color, NamedColor}; use alacritty_terminal::term::cell::{Cell, Flags as CellFlags}; use alacritty_terminal::term::color::{Colors, Rgb}; use alacritty_terminal::Term; +use fnv::FnvHashMap as HashMap; use softbuffer::GraphicsContext; -use std::collections::HashMap; use winit::window::Window; use crate::config::{ColorConfig, Config, FontConfig};