[evolution-data-server] Share subprocesses for built-in backends by default



commit 10ef84e5f9dffe0fd421336e9285adbf13354b5c
Author: Milan Crha <mcrha redhat com>
Date:   Tue Jul 22 15:54:13 2014 +0200

    Share subprocesses for built-in backends by default
    
    It turned out that opening subprocesses for each single instance
    is a very CPU and resource expensive operation, which can be seen
    for example when opening a meeting invitation email, which does
    a flood of open requests to open each configured calendar (and
    a Birthdays & Anniversaries calendar opens some books). Using one
    subprocess for a backend type makes it use less resources.

 .../backends/file/e-book-backend-file-factory.c    |    2 +-
 .../google/e-book-backend-google-factory.c         |    2 +-
 .../backends/ldap/e-book-backend-ldap-factory.c    |    2 +-
 .../webdav/e-book-backend-webdav-factory.c         |    2 +-
 .../backends/caldav/e-cal-backend-caldav-factory.c |    6 +++---
 .../contacts/e-cal-backend-contacts-factory.c      |    2 +-
 .../backends/file/e-cal-backend-file-factory.c     |    6 +++---
 .../backends/gtasks/e-cal-backend-gtasks-factory.c |    2 +-
 .../backends/http/e-cal-backend-http-factory.c     |    6 +++---
 .../weather/e-cal-backend-weather-factory.c        |    2 +-
 10 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/addressbook/backends/file/e-book-backend-file-factory.c 
b/addressbook/backends/file/e-book-backend-file-factory.c
index 3c79641..7ab6a7c 100644
--- a/addressbook/backends/file/e-book-backend-file-factory.c
+++ b/addressbook/backends/file/e-book-backend-file-factory.c
@@ -49,7 +49,7 @@ e_book_backend_file_factory_class_init (EBookBackendFactoryClass *class)
 
        backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
        backend_factory_class->e_module = e_module;
-       backend_factory_class->share_subprocess = FALSE;
+       backend_factory_class->share_subprocess = TRUE;
 
        class->factory_name = FACTORY_NAME;
        class->backend_type = E_TYPE_BOOK_BACKEND_FILE;
diff --git a/addressbook/backends/google/e-book-backend-google-factory.c 
b/addressbook/backends/google/e-book-backend-google-factory.c
index 4da22b4..a0ea5d3 100644
--- a/addressbook/backends/google/e-book-backend-google-factory.c
+++ b/addressbook/backends/google/e-book-backend-google-factory.c
@@ -47,7 +47,7 @@ e_book_backend_google_factory_class_init (EBookBackendFactoryClass *class)
 
        backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
        backend_factory_class->e_module = e_module;
-       backend_factory_class->share_subprocess = FALSE;
+       backend_factory_class->share_subprocess = TRUE;
 
        class->factory_name = FACTORY_NAME;
        class->backend_type = E_TYPE_BOOK_BACKEND_GOOGLE;
diff --git a/addressbook/backends/ldap/e-book-backend-ldap-factory.c 
b/addressbook/backends/ldap/e-book-backend-ldap-factory.c
index 758d88e..e49e0c3 100644
--- a/addressbook/backends/ldap/e-book-backend-ldap-factory.c
+++ b/addressbook/backends/ldap/e-book-backend-ldap-factory.c
@@ -52,7 +52,7 @@ e_book_backend_ldap_factory_class_init (EBookBackendFactoryClass *class)
 
        backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
        backend_factory_class->e_module = e_module;
-       backend_factory_class->share_subprocess = FALSE;
+       backend_factory_class->share_subprocess = TRUE;
 
        class->factory_name = FACTORY_NAME;
        class->backend_type = E_TYPE_BOOK_BACKEND_LDAP;
diff --git a/addressbook/backends/webdav/e-book-backend-webdav-factory.c 
b/addressbook/backends/webdav/e-book-backend-webdav-factory.c
index fca1155..5137626 100644
--- a/addressbook/backends/webdav/e-book-backend-webdav-factory.c
+++ b/addressbook/backends/webdav/e-book-backend-webdav-factory.c
@@ -47,7 +47,7 @@ e_book_backend_webdav_factory_class_init (EBookBackendFactoryClass *class)
 
        backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
        backend_factory_class->e_module = e_module;
-       backend_factory_class->share_subprocess = FALSE;
+       backend_factory_class->share_subprocess = TRUE;
 
        class->factory_name = FACTORY_NAME;
        class->backend_type = E_TYPE_BOOK_BACKEND_WEBDAV;
diff --git a/calendar/backends/caldav/e-cal-backend-caldav-factory.c 
b/calendar/backends/caldav/e-cal-backend-caldav-factory.c
index 8957951..6a54273 100644
--- a/calendar/backends/caldav/e-cal-backend-caldav-factory.c
+++ b/calendar/backends/caldav/e-cal-backend-caldav-factory.c
@@ -66,7 +66,7 @@ e_cal_backend_caldav_events_factory_class_init (ECalBackendFactoryClass *class)
 
        backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
        backend_factory_class->e_module = e_module;
-       backend_factory_class->share_subprocess = FALSE;
+       backend_factory_class->share_subprocess = TRUE;
 
        class->factory_name = FACTORY_NAME;
        class->component_kind = ICAL_VEVENT_COMPONENT;
@@ -90,7 +90,7 @@ e_cal_backend_caldav_journal_factory_class_init (ECalBackendFactoryClass *class)
 
        backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
        backend_factory_class->e_module = e_module;
-       backend_factory_class->share_subprocess = FALSE;
+       backend_factory_class->share_subprocess = TRUE;
 
        class->factory_name = FACTORY_NAME;
        class->component_kind = ICAL_VJOURNAL_COMPONENT;
@@ -114,7 +114,7 @@ e_cal_backend_caldav_todos_factory_class_init (ECalBackendFactoryClass *class)
 
        backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
        backend_factory_class->e_module = e_module;
-       backend_factory_class->share_subprocess = FALSE;
+       backend_factory_class->share_subprocess = TRUE;
 
        class->factory_name = FACTORY_NAME;
        class->component_kind = ICAL_VTODO_COMPONENT;
diff --git a/calendar/backends/contacts/e-cal-backend-contacts-factory.c 
b/calendar/backends/contacts/e-cal-backend-contacts-factory.c
index fa806a2..8592fb1 100644
--- a/calendar/backends/contacts/e-cal-backend-contacts-factory.c
+++ b/calendar/backends/contacts/e-cal-backend-contacts-factory.c
@@ -48,7 +48,7 @@ e_cal_backend_contacts_events_factory_class_init (ECalBackendFactoryClass *class
 
        backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
        backend_factory_class->e_module = e_module;
-       backend_factory_class->share_subprocess = FALSE;
+       backend_factory_class->share_subprocess = TRUE;
 
        class->factory_name = FACTORY_NAME;
        class->component_kind = ICAL_VEVENT_COMPONENT;
diff --git a/calendar/backends/file/e-cal-backend-file-factory.c 
b/calendar/backends/file/e-cal-backend-file-factory.c
index 27a3d7a..f4be08f 100644
--- a/calendar/backends/file/e-cal-backend-file-factory.c
+++ b/calendar/backends/file/e-cal-backend-file-factory.c
@@ -68,7 +68,7 @@ e_cal_backend_file_events_factory_class_init (ECalBackendFactoryClass *class)
 
        backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
        backend_factory_class->e_module = e_module;
-       backend_factory_class->share_subprocess = FALSE;
+       backend_factory_class->share_subprocess = TRUE;
 
        class->factory_name = FACTORY_NAME;
        class->component_kind = ICAL_VEVENT_COMPONENT;
@@ -92,7 +92,7 @@ e_cal_backend_file_journal_factory_class_init (ECalBackendFactoryClass *class)
 
        backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
        backend_factory_class->e_module = e_module;
-       backend_factory_class->share_subprocess = FALSE;
+       backend_factory_class->share_subprocess = TRUE;
 
        class->factory_name = FACTORY_NAME;
        class->component_kind = ICAL_VJOURNAL_COMPONENT;
@@ -116,7 +116,7 @@ e_cal_backend_file_todos_factory_class_init (ECalBackendFactoryClass *class)
 
        backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
        backend_factory_class->e_module = e_module;
-       backend_factory_class->share_subprocess = FALSE;
+       backend_factory_class->share_subprocess = TRUE;
 
        class->factory_name = FACTORY_NAME;
        class->component_kind = ICAL_VTODO_COMPONENT;
diff --git a/calendar/backends/gtasks/e-cal-backend-gtasks-factory.c 
b/calendar/backends/gtasks/e-cal-backend-gtasks-factory.c
index 6888faa..323844f 100644
--- a/calendar/backends/gtasks/e-cal-backend-gtasks-factory.c
+++ b/calendar/backends/gtasks/e-cal-backend-gtasks-factory.c
@@ -46,7 +46,7 @@ e_cal_backend_gtasks_factory_class_init (ECalBackendFactoryClass *class)
 
        backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
        backend_factory_class->e_module = e_module;
-       backend_factory_class->share_subprocess = FALSE;
+       backend_factory_class->share_subprocess = TRUE;
 
        class->factory_name = FACTORY_NAME;
        class->component_kind = ICAL_VTODO_COMPONENT;
diff --git a/calendar/backends/http/e-cal-backend-http-factory.c 
b/calendar/backends/http/e-cal-backend-http-factory.c
index 4701c59..611d250 100644
--- a/calendar/backends/http/e-cal-backend-http-factory.c
+++ b/calendar/backends/http/e-cal-backend-http-factory.c
@@ -65,7 +65,7 @@ e_cal_backend_http_events_factory_class_init (ECalBackendFactoryClass *class)
 
        backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
        backend_factory_class->e_module = e_module;
-       backend_factory_class->share_subprocess = FALSE;
+       backend_factory_class->share_subprocess = TRUE;
 
        class->factory_name = FACTORY_NAME;
        class->component_kind = ICAL_VEVENT_COMPONENT;
@@ -89,7 +89,7 @@ e_cal_backend_http_journal_factory_class_init (ECalBackendFactoryClass *class)
 
        backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
        backend_factory_class->e_module = e_module;
-       backend_factory_class->share_subprocess = FALSE;
+       backend_factory_class->share_subprocess = TRUE;
 
        class->factory_name = FACTORY_NAME;
        class->component_kind = ICAL_VJOURNAL_COMPONENT;
@@ -113,7 +113,7 @@ e_cal_backend_http_todos_factory_class_init (ECalBackendFactoryClass *class)
 
        backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
        backend_factory_class->e_module = e_module;
-       backend_factory_class->share_subprocess = FALSE;
+       backend_factory_class->share_subprocess = TRUE;
 
        class->factory_name = FACTORY_NAME;
        class->component_kind = ICAL_VTODO_COMPONENT;
diff --git a/calendar/backends/weather/e-cal-backend-weather-factory.c 
b/calendar/backends/weather/e-cal-backend-weather-factory.c
index e1cfa0c..6f043e0 100644
--- a/calendar/backends/weather/e-cal-backend-weather-factory.c
+++ b/calendar/backends/weather/e-cal-backend-weather-factory.c
@@ -48,7 +48,7 @@ e_cal_backend_weather_events_factory_class_init (ECalBackendFactoryClass *class)
 
        backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
        backend_factory_class->e_module = e_module;
-       backend_factory_class->share_subprocess = FALSE;
+       backend_factory_class->share_subprocess = TRUE;
 
        class->factory_name = FACTORY_NAME;
        class->component_kind = ICAL_VEVENT_COMPONENT;


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