Revert "Use Fx* variants of HashMap and HashSet everywhere in Zed" (#7492)

Reverts zed-industries/zed#7481

This would regress performance because we'd be using the standard
library's hash maps everywhere, so reverting for now.
This commit is contained in:
Antonio Scandurra 2024-02-07 13:16:22 +01:00 committed by GitHub
parent 5c8073d344
commit 55129d4d6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 102 additions and 96 deletions

View file

@ -13,7 +13,6 @@ doctest = false
[dependencies]
alacritty_terminal = "0.22.0"
anyhow.workspace = true
collections.workspace = true
db.workspace = true
dirs = "4.0.0"
futures.workspace = true

View file

@ -30,7 +30,6 @@ use mappings::mouse::{
scroll_report,
};
use collections::{HashMap, VecDeque};
use procinfo::LocalProcessInfo;
use serde::{Deserialize, Serialize};
use settings::Settings;
@ -40,6 +39,7 @@ use util::truncate_and_trailoff;
use std::{
cmp::{self, min},
collections::{HashMap, VecDeque},
fmt::Display,
ops::{Deref, Index, RangeInclusive},
os::unix::prelude::AsRawFd,

View file

@ -1,4 +1,3 @@
use collections::HashMap;
use gpui::{px, AbsoluteLength, AppContext, FontFeatures, Pixels};
use schemars::{
gen::SchemaGenerator,
@ -8,7 +7,7 @@ use schemars::{
use serde_derive::{Deserialize, Serialize};
use serde_json::Value;
use settings::SettingsJsonSchemaParams;
use std::path::PathBuf;
use std::{collections::HashMap, path::PathBuf};
#[derive(Copy, Clone, Debug, Serialize, Deserialize, JsonSchema, PartialEq, Eq)]
#[serde(rename_all = "snake_case")]