Add upper bound limit. Remove dbg! statements

This commit is contained in:
Piotr Osiewicz 2023-08-08 02:17:11 +02:00
parent fa16895976
commit 42e1221357
2 changed files with 4 additions and 4 deletions

View file

@ -1132,15 +1132,13 @@ impl EditorElement {
corner_radius: style.thumb.corner_radius,
})
};
let start = std::time::Instant::now();
let background_ranges = editor
.selected_rows::<crate::items::BufferSearchHighlights>(
start_anchor..end_anchor,
&layout.position_map.snapshot,
50000,
&theme,
);
dbg!(start.elapsed().as_millis());
for row in background_ranges {
let start = row.start();
let end = row.end();