mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Use AHash for BLT HashSet
This commit is contained in:
parent
8dcaa3d7d5
commit
af5bd32eeb
@ -5,8 +5,6 @@
|
|||||||
|
|
||||||
use bear_lib_terminal;
|
use bear_lib_terminal;
|
||||||
|
|
||||||
use std::collections::HashSet;
|
|
||||||
|
|
||||||
use self::bear_lib_terminal::geometry::Size;
|
use self::bear_lib_terminal::geometry::Size;
|
||||||
use self::bear_lib_terminal::terminal::{
|
use self::bear_lib_terminal::terminal::{
|
||||||
self, state, Event as BltEvent, KeyCode,
|
self, state, Event as BltEvent, KeyCode,
|
||||||
@ -19,7 +17,7 @@ use crate::theme::{BaseColor, Color, ColorPair, Effect};
|
|||||||
use crate::vec::Vec2;
|
use crate::vec::Vec2;
|
||||||
|
|
||||||
// Use AHash instead of the slower SipHash
|
// Use AHash instead of the slower SipHash
|
||||||
type HashMap<K, V> = std::collections::HashMap<K, V, ahash::ABuildHasher>;
|
type HashSet<K> = std::collections::HashSet<K, ahash::ABuildHasher>;
|
||||||
|
|
||||||
enum ColorRole {
|
enum ColorRole {
|
||||||
Foreground,
|
Foreground,
|
||||||
|
Loading…
Reference in New Issue
Block a user