[gnome-photos] Try to batch queries by multiples of row sizes
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] Try to batch queries by multiples of row sizes
- Date: Sat, 10 Feb 2018 00:10:57 +0000 (UTC)
commit 4b2245e8fee932df0a7e15662a0baf89ae7cbfd0
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Feb 9 23:53:42 2018 +0100
Try to batch queries by multiples of row sizes
This won't work for all MainWindow sizes, but will quite often be
better than the status quo. As opposed to fifty, sixty is a multiple of
everything from one to six, which means that it will ensure that the
ViewContainers have full rows for a wide range of window sizes.
src/photos-offset-controller.c | 2 +-
src/photos-query-builder.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-offset-controller.c b/src/photos-offset-controller.c
index be31deb2..19fdedb1 100644
--- a/src/photos-offset-controller.c
+++ b/src/photos-offset-controller.c
@@ -59,7 +59,7 @@ EGG_DEFINE_COUNTER (instances,
enum
{
- OFFSET_STEP = 50
+ OFFSET_STEP = 60
};
diff --git a/src/photos-query-builder.c b/src/photos-query-builder.c
index 84effc69..7ef73771 100644
--- a/src/photos-query-builder.c
+++ b/src/photos-query-builder.c
@@ -136,7 +136,7 @@ photos_query_builder_query (PhotosSearchContextState *state,
if (global)
{
gint offset = 0;
- gint step = 50;
+ gint step = 60;
if (offset_cntrlr != NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]