Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Super slow "replace all" in a 5M JSON file #11210

Open
1 task done
failable opened this issue Apr 30, 2024 · 0 comments
Open
1 task done

Super slow "replace all" in a 5M JSON file #11210

failable opened this issue Apr 30, 2024 · 0 comments
Labels
defect [core label] performance Feedback for performance issues, speed, memory usage, etc search / project search Feedback for in-file search, multi-buffer global search, etc

Comments

@failable
Copy link

failable commented Apr 30, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Search {nft_collection} (about 3000+ occurrences) and replace them{nft_collection_name} in this file: data.json .

The CPU goes 100% and never finish replacing. Finally I have to kill Zed.

As comparison, I finish the job in Emacs under 0.2 seconds.

Environment

Zed: v0.133.5 (Zed Preview)
OS: macOS 14.4.1
Memory: 32 GiB
Architecture: x86_64

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

No response

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

No response

@failable failable added admin read Pending admin review defect [core label] triage Maintainer needs to classify the issue labels Apr 30, 2024
@JosephTLyons JosephTLyons added performance Feedback for performance issues, speed, memory usage, etc search / project search Feedback for in-file search, multi-buffer global search, etc and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Apr 30, 2024
@failable failable changed the title Super slow replace all 5M JSON file Super slow "replace all" in a 5M JSON file May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect [core label] performance Feedback for performance issues, speed, memory usage, etc search / project search Feedback for in-file search, multi-buffer global search, etc
Projects
None yet
Development

No branches or pull requests

2 participants