Spinner takes 10-15% of CPU
From time to time Geary gets stuck showing the "loading spinner" infinitely and loading a CPU core by 10-15%. So I used
perf record with
flamegraph to peek at 15 seconds of what it's doing so long and so hard (for recording I did not touch Geary to make sure I don't cause any accidental GUI updates). I might be wrong, but judging from "draw" infixes in the heaviest part, it's simply draws something, and the only part that's moving is spinner.
The exploreable svg of the flamegraph is attached https://gitlab.gnome.org/GNOME/geary/uploads/480bf0e2131e8bbb40bf97564a816526/out.svg
Exact steps to reproduce are unknown. It happens most often after Geary just started, when you start removing newly received mails before spinner stops.
Version: 3.33.1 (remotes/upstream/HEAD-0-gf01e4135)