Page contents / thumbnails re-rendered every time the sidebar is opened/closed
Somewhat related to #119.
Stealing the sample/test file from GNOME/evince#1629, I noticed that Papers will always regenerate/recalculate a bunch of things and eat the CPU for many seconds each time you open/close the sidebar, and the UI will be unresponsive (micro-freezing) during that time.
To reproduce, with the sample linked above, and a system resources monitor (such as gnome-system-monitor or gkrellm):
- Make sure Papers was left with the sidebar closed
- Open the sample above, watch the CPU usage with a system monitor
-
F9
to open the sidebar.
Notice the probable lag/multi-seconds freeze before it reacts.
Notice that the CPU usage goes to 100% for one or more cores, for a long time. - Wait for it to settle down to 0% CPU usage
-
F9
to close the sidebar.
Notice that CPU usage goes up again for many seconds. -
F9
to open the sidebar again. Notice that CPU usage goes up again for many seconds, even if you had fully rendered all the pages' thumbnails in the previous round at steps 3-4.
Seems like it is redoing the same work everytime, which is very wasteful.
Edited by Jeff Fortin