Consume 3% of CPU
Lapce Version
0.4.6
System information Hardware: GCP VM, n2-standard-2 (2 vCPUs, 8 GB RAM) OS: Ubuntu 26.04 LTS Display server: X11 Desktop environment: GNOME Describe the bug
Lapce continuously uses around 3% CPU when idle, even when no files are being edited and there is no apparent background activity.
On a VM with only 2 vCPUs, this represents a noticeable amount of CPU usage for an idle editor.
The CPU usage remains around 3% over time rather than dropping close to 0%.
Additional information How to reproduce Start Lapce 0.4.6. Open a workspace. Do not perform any editing or other activity. Leave Lapce idle for several minutes. Observe the CPU usage using top or htop.
Lapce consistently shows approximately 3% CPU usage while idle.
Expected behavior
CPU usage should drop to close to 0% when Lapce is idle.
Actual behavior
Lapce continuously consumes approximately 3% CPU while idle.
This is reported by bottom. It's 3.5%
This is reported by top. It's 6%
Basically. CPU is 2.5% ~ 6% Additional notes
This was observed on a GCP n2-standard-2 VM with 2 vCPUs and 8 GB RAM. The relatively small number of vCPUs makes the persistent CPU usage more noticeable
Source: lapce/lapce