Skip to content

100% CPU while typing when Edit prediction is turned on #53298

@olejorgenb

Description

@olejorgenb

Reproduction steps

  1. Turn edit predictions on (Only tested using Zed as provider)
  2. Type in a file (python file)

Zed saturates about one full CPU core while typing. (Whatever consumes the CPU seems to be limited to one thread)

I tried turning of all language servers with same result.

Meta:

how to reproduce the bug from a clean Zed install

Here it would be helpful if there was a hint of how to start Zed in clean state

Current vs. Expected behavior

Before (and now with Edit prediction off) typing would not cause fans to spin. Not sure exactly what CPU rate is to be expected.

I noticed this after updating afters Easter today. I'm not 100% sure I had Edit prediction enabled earlier though, so it's not easy to pinpoint the exact version. (I'll see if I can find time to "bisect" the version later)

Zed version and system specs

Zed: v0.230.2+stable.212.53a3365bcf6b1aa17389b21456b6010f294f788f (Zed)
OS: Linux Wayland fedora 43 (Niri compositor)
Memory: 62 GiB
Architecture: x86_64
GPU: AMD Ryzen 9 7900X 12-Core Processor (RADV RAPHAEL_MENDOCINO) || radv || Mesa 25.3.5

Attach Zed log file

No relevant logs that I can see

Relevant Zed settings

settings.json

Settings that might be relevant:

"edit_predictions": {
    "provider": "zed",
    "mode": "subtle",
  },
...
"cursor_blink": false,
"show_completions_on_input": false,

Relevant Keymap

(for AI issues) Model provider details

  • Provider (edit predictions): Zed

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ai/edit predictionUmbrella label for Copilot, Supermaven, etc. inline completions (non-Zeta-specific)area:performanceFeedback for performance issues, speed, memory usage, etcfrequency:uncommonBugs that happen for a small subset of users, special configurations, rare circumstances, etcpriority:P2Average run-of-the-mill bugs

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions