[gnome-characters] BackgroundService: reduce the inactivity timeout to 30s



commit ed45449aa6acc0481ce800799e5ea964b3a866fc
Author: Giovanni Campagna <scampa giovanni gmail com>
Date:   Tue Mar 3 02:01:55 2015 -0800

    BackgroundService: reduce the inactivity timeout to 30s
    
    gnome-characters does pretty much nothing during initialization:
    its startup code is paging in the Unicode tables, so the tradeoff
    is purely between disk access and memory usage.
    By reducing the inactivity timeout we release memory more often
    and let the kernel manage disk cache more effectively.
    There should be no measurable CPU impact by this patch, because
    the service should be sleeping most of the time anyway.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=745508

 src/service.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/service.js b/src/service.js
index b2cc704..22e5606 100644
--- a/src/service.js
+++ b/src/service.js
@@ -47,7 +47,7 @@ const BackgroundService = new Lang.Class({
     _init: function() {
         this.parent({ application_id: pkg.name,
                       flags: Gio.ApplicationFlags.IS_SERVICE,
-                      inactivity_timeout: 60000 });
+                      inactivity_timeout: 30000 });
         GLib.set_application_name(_("Characters"));
 
         this._searchProvider = new SearchProvider.SearchProvider(this);


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