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

High CPU comsuption for style changes #472

Open
maple-leaf opened this issue Aug 4, 2020 · 1 comment
Open

High CPU comsuption for style changes #472

maple-leaf opened this issue Aug 4, 2020 · 1 comment
Labels

Comments

@maple-leaf
Copy link

Machine Info:

  Model Name:	MacBook Pro
  Model Identifier:	MacBookPro15,1
  Processor Name:	Intel Core i7
  Processor Speed:	2.6 GHz
  Number of Processors:	1
  Total Number of Cores:	6
  L2 Cache (per Core):	256 KB
  L3 Cache:	12 MB
  Hyper-Threading Technology:	Enabled
  Memory:	16 GB

OS: macOS Mojave 10.14.6 (18G103)
Rust version: 1.45.1

Steps to reproduce:

  1. Run 'todos' in examples of the repository
  2. Create a todo item
  3. Hover and un-hover a todo item quickly. This operation uses up to ~18% CPU.
  4. Resize the window width quickly. This operation uses up to ~60% CPU. And sometimes it stops responding to resize.

https://www.loom.com/share/2b5d2151eec740c4a109656249335d13

@hecrj
Copy link
Member

hecrj commented Aug 4, 2020

Thanks for the report! This is related to #241.

Style changes are not really the cause of the issue, but just the fact that we are currently redrawing all the time (i.e. on every mouse event). I have plans to tackle this relatively soon.

@hecrj hecrj added the improvement An internal improvement label Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants