Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

gtktest consumes ~75% of cpu on OS X #162

Open
ehiggs opened this issue Apr 6, 2018 · 3 comments
Open

gtktest consumes ~75% of cpu on OS X #162

ehiggs opened this issue Apr 6, 2018 · 3 comments

Comments

@ehiggs
Copy link

ehiggs commented Apr 6, 2018

Reproduction:
Build examples using cargo build --release --features gtk_3_10 on OS X El Capitan.

Observed:
~75% cpu usage (and 45M resident memory use) as seen through top -o cpu

Expected:
As an example, gtktest should consume almost no resources as it is not doing anything afaict.

@EPashkin
Copy link
Member

EPashkin commented Apr 6, 2018

Seems it because GtkSpinner implementation as it working all time,
without it gtktest don't consume CPU.

@ehiggs
Copy link
Author

ehiggs commented Apr 6, 2018

75% cpu seems excessive for drawing a spinner. Is this a gtk bug or gtk-rs?

@EPashkin
Copy link
Member

EPashkin commented Apr 7, 2018

Gtk's, as gtk-rs only wrapper.
There was already many bugs filled in Gtk like https://bugzilla.gnome.org/show_bug.cgi?id=684639

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants