diff options
author | Chris Toshok <toshok@ximian.com> | 2002-06-16 06:57:30 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2002-06-16 06:57:30 +0800 |
commit | 9ad7232a43e90b775d2bc4510b2b0829c978bd57 (patch) | |
tree | 0b27353449444c206e42d4b79116539f33f8a0db | |
parent | f71abec6805236cc97891f0fba506c009d52cbf9 (diff) | |
download | gsoc2013-evolution-9ad7232a43e90b775d2bc4510b2b0829c978bd57.tar.gz gsoc2013-evolution-9ad7232a43e90b775d2bc4510b2b0829c978bd57.tar.zst gsoc2013-evolution-9ad7232a43e90b775d2bc4510b2b0829c978bd57.zip |
up the max threshold to 3000 cards from 1000 cards.. seems to improve
2002-06-14 Chris Toshok <toshok@ximian.com>
* backend/pas/pas-backend-file.c (pas_backend_file_search): up the
max threshold to 3000 cards from 1000 cards.. seems to improve
performance a bit. also remove the g_list_reverse since it
doesn't matter what order the cards arrive to the gui.
(pas_backend_file_changes): plug memory leaks.
svn path=/trunk/; revision=17196
-rw-r--r-- | addressbook/ChangeLog | 8 | ||||
-rw-r--r-- | addressbook/backend/pas/pas-backend-file.c | 9 |
2 files changed, 13 insertions, 4 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 36b2dbbc31..9298858f90 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,11 @@ +2002-06-14 Chris Toshok <toshok@ximian.com> + + * backend/pas/pas-backend-file.c (pas_backend_file_search): up the + max threshold to 3000 cards from 1000 cards.. seems to improve + performance a bit. also remove the g_list_reverse since it + doesn't matter what order the cards arrive to the gui. + (pas_backend_file_changes): plug memory leaks. + 2002-06-14 Christopher James Lahey <clahey@ximian.com> * backend/ebook/e-card-compare.c (compare_email_addresses): Made diff --git a/addressbook/backend/pas/pas-backend-file.c b/addressbook/backend/pas/pas-backend-file.c index 2848fcda71..e80a0a41dd 100644 --- a/addressbook/backend/pas/pas-backend-file.c +++ b/addressbook/backend/pas/pas-backend-file.c @@ -241,7 +241,7 @@ pas_backend_file_search (PASBackendFile *bf, { int db_error = 0; GList *cards = NULL; - gint card_count = 0, card_threshold = 20, card_threshold_max = 1000; + gint card_count = 0, card_threshold = 20, card_threshold_max = 3000; DB *db = bf->priv->file_db; DBC *dbc; DBT id_dbt, vcard_dbt; @@ -301,7 +301,6 @@ pas_backend_file_search (PASBackendFile *bf, /* If we've accumulated a number of checks, pass them off to the client. */ if (card_count >= card_threshold) { - cards = g_list_reverse (cards); pas_book_view_notify_add (view->book_view, cards); /* Clean up the handed-off data. */ g_list_foreach (cards, (GFunc)g_free, NULL); @@ -419,12 +418,12 @@ pas_backend_file_changes (PASBackendFile *bf, break; case E_DBHASH_STATUS_NOT_FOUND: ctx->add_cards = g_list_append (ctx->add_cards, - g_strdup(vcard_string)); + vcard_string); ctx->add_ids = g_list_append (ctx->add_ids, g_strdup(id)); break; case E_DBHASH_STATUS_DIFFERENT: ctx->mod_cards = g_list_append (ctx->mod_cards, - g_strdup(vcard_string)); + vcard_string); ctx->mod_ids = g_list_append (ctx->mod_ids, g_strdup(id)); break; } @@ -699,6 +698,8 @@ pas_backend_file_process_modify_card (PASBackend *backend, pas_book_view_notify_complete (view->book_view); bonobo_object_release_unref(bonobo_object_corba_objref(BONOBO_OBJECT(view->book_view)), &ev); + + CORBA_exception_free (&ev); } gtk_object_unref(GTK_OBJECT(iterator)); |