r18724 - gnucash/trunk/src/backend/sql - When creating lists of database objects, use g_list_prepend() rather than g_list_append(). There may be cases where the list order is significant and thus needs to be reversed, but that is not true in these cases. This provides a large improvement in database loading performance.

Phil Longstaff plongstaff at code.gnucash.org
Wed Feb 24 15:11:22 EST 2010


Author: plongstaff
Date: 2010-02-24 15:11:22 -0500 (Wed, 24 Feb 2010)
New Revision: 18724
Trac: http://svn.gnucash.org/trac/changeset/18724

Modified:
   gnucash/trunk/src/backend/sql/gnc-budget-sql.c
   gnucash/trunk/src/backend/sql/gnc-schedxaction-sql.c
   gnucash/trunk/src/backend/sql/gnc-transaction-sql.c
Log:
When creating lists of database objects, use g_list_prepend() rather than g_list_append().  There may be cases where the list order is significant and thus needs to be reversed, but that is not true in these cases.  This provides a large improvement in database loading performance.

Analysis and basis patch supplied by Donald Allen.




More information about the gnucash-patches mailing list