[evince] Set a good default value for the pixbuf cache



commit acfe580b26705e7f18e6a8c22aed53ad128f6db7
Author: William Jon McCann <jmccann redhat com>
Date:   Tue Dec 4 17:59:50 2012 -0500

    Set a good default value for the pixbuf cache
    
    This makes it easier for consumers of EvView to have good
    performance out of the box.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=689674

 libview/ev-view.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index a24e736..15927e1 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -99,6 +99,8 @@ typedef struct {
 
 #define SCROLL_TIME 150
 
+#define DEFAULT_PIXBUF_CACHE_SIZE 52428800 /* 50MB */
+
 /*** Scrolling ***/
 static void       view_update_range_and_current_page         (EvView             *view);
 static void       add_scroll_binding_keypad                  (GtkBindingSet      *binding_set,
@@ -4875,6 +4877,7 @@ ev_view_init (EvView *view)
 	view->pending_scroll = SCROLL_TO_KEEP_POSITION;
 	view->jump_to_find_result = TRUE;
 	view->highlight_find_results = FALSE;
+	view->pixbuf_cache_size = DEFAULT_PIXBUF_CACHE_SIZE;
 }
 
 /*** Callbacks ***/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]