Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
editor: Improve performance of buffer/project search (#15109)
Piotr Osiewicz325e6b9fef17
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex b4215bd2241..ce61a3f7d67 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -10859,17 +10859,6 @@ impl Editor {color_fetcher: fn(&ThemeColors) -> Hsla,cx: &mut ViewContext<Self>,) {- let snapshot = self.snapshot(cx);- // this is to try and catch a panic sooner- for range in ranges {- snapshot- .buffer_snapshot- .summary_for_anchor::<usize>(&range.start);- snapshot- .buffer_snapshot- .summary_for_anchor::<usize>(&range.end);- }-self.background_highlights.insert(TypeId::of::<T>(), (color_fetcher, Arc::from(ranges)));self.scrollbar_marker_state.dirty = true;