zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.71k stars 3.14k forks source link

Editor becomes unresponsive when using Edit > Find in large file #8172

Closed pratikmmohite closed 4 months ago

pratikmmohite commented 9 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

1) Open the file pincode.csv 2) Go to Edit > Find (Command + F) 3) Search "Pune"

Environment

Model Name: MacBook Pro MacOs : 14.3.1 (23D60) Model Identifier: Mac14,10 Chip: Apple M2 Pro Total Number of Cores: 12 (8 performance and 4 efficiency) Memory: 16 GB System Firmware Version: 10151.81.1 OS Loader Version: 10151.81.1

If applicable, add mockups / screenshots to help explain present your vision of the feature

image

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

Zed.log

jacobdalamb commented 9 months ago

Also when doing a workspace search, probably any kind of search in a large file or codespace will cause this

pratikmmohite commented 9 months ago

@jacobdalamb I am currently using Webstorm and it does not have this issue.

If search takes times it understandable but application getting frozen.

MaXal commented 8 months ago

It looks like the issue is related to EditorElement::paint_scrollbar that takes 70% of the main thread during the search.

image

Snapshot: Run_Zed_2024-03-19-144719.collapsed.zip

osiewicz commented 4 months ago

Is this still an issue for you?

pratikmmohite commented 4 months ago

@osiewicz No, Issue is fixed i think.

Closing this issue