zed icon indicating copy to clipboard operation
zed copied to clipboard

zed is slow when viewing a 1 mb yaml file, but not when it's a 1 mb json file

Open demo-err opened this issue 6 months ago • 2 comments

Summary

zed is slow when viewing a 1 mb yaml file, but not when it's a 1 mb json file

Description

Steps to reproduce:

  1. download 1mb yaml and json
  2. open both with zed
  3. compare slowness

Expected Behavior: both should be the same speed Actual Behavior: yaml slow, json not

Zed Version and System Specs

Zed: v0.187.9 (Zed) OS: Linux Wayland nixos 25.11 Memory: 19.4 GiB Architecture: x86_64 GPU: AMD Radeon Graphics (RADV RENOIR) || radv || Mesa 25.1.1

demo-err avatar May 31 '25 11:05 demo-err

This could be an issue with tree-sitter-yaml (responsible for syntax highlight) or yaml-language-server (less likely). Do you have an example 1MB yaml file which triggers this behavior?

Also can you quantify what is slow? (typing, autocomplete, scrolling, etc)

notpeter avatar May 31 '25 16:05 notpeter

Do you have an example 1MB yaml file which triggers this behavior?

yes, it's downloadable and hyperlinked in the "Steps to reproduce:"

Also can you quantify what is slow? (typing, autocomplete, scrolling, etc)

everything you mentioned

demo-err avatar Jun 01 '25 04:06 demo-err

Hi there! 👋 We're working to clean up our issue tracker by closing older bugs that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Zed, please let us know by commenting on this issue, and it will be kept open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, it will close automatically in 14 days. Thanks for your help!

github-actions[bot] avatar Nov 19 '25 11:11 github-actions[bot]