Automattic / Automattic/simplenote-electron

CPU usage is high a little

Open
#2,833 5 comments 0 reactions 0 assignees View on GitHub
[feature] build bug
Dominant language
TypeScript
Stars
5.3k
Forks
588
Avg merge
9h 45m
Merged PRs (30d)
4

Description

### Observed

When I open the SimpleNote web page or the Electron App, the CPU usage increases by about 5%.

When I analyzed the Performance in Google Chrome's Developer Tools, I found that the timer was firing about 250 times per second. This phenomenon may be related to the high CPU usage.

![Untitled](https://user-images.githubusercontent.com/96674/114165590-a42c9b00-9967-11eb-8a53-1653626653a4.png)

### Expected

CPU usage does not increase significantly by just opening the SimpleNote application.

### Reproduced

1. Open Electron app
2. watch the CPU usage by top command

This problem occurs on both of Electron app and web browser.

### Where did you see the bug
- System Make:
- System Model:
- OS:Ubuntu Linux
- OS version: 20.10
- Browser (if applicable): both of Electron App and Google Chrome
- Browser version (if applicable): Version 89.0.4389.114
- Simplenote app version: 2.9.0-beta

Contributor guide

Open the contributing guide

Research direction

No source file, test, or entry point is named. Reproduce the issue in the Electron app and Chrome, then use Chrome Developer Tools and top to investigate the timer firing about 250 times per second. Done means opening Simplenote no longer causes a significant CPU increase in either environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
desktop, performance, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.