GNOME Bugzilla – Bug 757807
The startup time for Logs is very long
Last modified: 2015-11-12 12:31:54 UTC
I have more than 700 boots in my system. And it takes me more than 4 minutes to open Logs, which is annoying. Previously we fetch all the boots in the system, but only the latest 5 boots should be useful. So improving the startup time by only fetching the latest 5 boots should be fine.
Created attachment 315116 [details] [review] patch for this bug
Review of attachment 315116 [details] [review]: Does this work when there are fewer than 5 boots? ::: src/gl-journal.c @@ +137,3 @@ } + r = sd_journal_get_monotonic_usec (priv->journal, NULL, &id); It is confusing to use sd_journal_get_monotonic_usec() to get (just) the boot ID. Needs at least a comment, but I think it is better to use the existing approach (sd_journal_get_data(), although that is hidden inside the FOREACH macros).
Created attachment 315331 [details] [review] patch updated
Review of attachment 315331 [details] [review]: Seems fine to me.
Pushed to master as commit 21e890edc58c16cdef3fc4a9b92f555d8c99cf94