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:
parent
5c8073d344
commit
55129d4d6c
27 changed files with 102 additions and 96 deletions
|
@ -2,7 +2,7 @@ use crate::{
|
|||
point, AtlasTextureId, AtlasTile, Bounds, ContentMask, Corners, Edges, EntityId, Hsla, Pixels,
|
||||
Point, ScaledPixels, StackingOrder,
|
||||
};
|
||||
use collections::{BTreeMap, HashSet};
|
||||
use collections::{BTreeMap, FxHashSet};
|
||||
use std::{fmt::Debug, iter::Peekable, slice};
|
||||
|
||||
// Exported to metal
|
||||
|
@ -159,7 +159,7 @@ impl Scene {
|
|||
layer_id
|
||||
}
|
||||
|
||||
pub fn reuse_views(&mut self, views: &HashSet<EntityId>, prev_scene: &mut Self) {
|
||||
pub fn reuse_views(&mut self, views: &FxHashSet<EntityId>, prev_scene: &mut Self) {
|
||||
for shadow in prev_scene.shadows.drain(..) {
|
||||
if views.contains(&shadow.view_id.into()) {
|
||||
let order = &prev_scene.orders_by_layer[&shadow.layer_id];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue