examples icon indicating copy to clipboard operation
examples copied to clipboard

gtktest consumes ~75% of cpu on OS X

Open ehiggs opened this issue 7 years ago • 3 comments

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.

ehiggs avatar Apr 06 '18 09:04 ehiggs

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

EPashkin avatar Apr 06 '18 10:04 EPashkin

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

ehiggs avatar Apr 06 '18 22:04 ehiggs

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

EPashkin avatar Apr 07 '18 03:04 EPashkin