Author: post
Date: 2012-03-28 16:49:13 +0200 (Wed, 28 Mar 2012)
New Revision: 4171
Modified:
trunk/src/rs-store.c
Log:
Cancel uncompleted prefetches when new image is selected - less IO lock
contention.
Modified: trunk/src/rs-store.c
===================================================================
--- trunk/src/rs-store.c 2012-03-28 14:47:37 UTC (rev 4170)
+++ trunk/src/rs-store.c 2012-03-28 14:49:13 UTC (rev 4171)
@@ -454,8 +454,6 @@
{
/* Preload current image - this is stupid thou! */
path = g_list_nth_data(selected, 0);
- if (gtk_tree_model_get_iter(gtk_icon_view_get_model (iconview),
&iter, path))
- preload_iter(model, &iter);
/* Near */
next = gtk_tree_path_copy(path);
@@ -571,6 +569,7 @@
g_free(store->next_file);
store->next_file = NULL;
store->delay_load = 0;
+ rs_io_idle_cancel_class(PRELOAD_CLASS);
g_signal_emit(G_OBJECT(data), signals[THUMB_ACTIVATED_SIGNAL],
0, name);
predict_preload(data, FALSE);
}
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit