GNOME Bugzilla – Bug 757363
Don't use g_list_length unless we really need to
Last modified: 2015-12-08 08:14:17 UTC
g_list_length is O(n) because it iterates over the GList to find its length. There are often better alternatives which we can use.
Created attachment 314481 [details] [review] base-item: Avoid O(n) logic
Created attachment 314482 [details] [review] selection-toolbar: Avoid O(n) logic
Created attachment 314483 [details] [review] fetch-collection-state-job: Avoid O(n) logic
Pushed to master.
Created attachment 316536 [details] [review] selection-toolbar: Unbreak printing
From #documents on GIMPNet: 16:02 <rishi> abono_: Fixed printing: https://bugzilla.gnome.org/show_bug.cgi?id=757363 16:02 <rishi> Does it look OK? 16:05 <abono_> yes it looks ok.