gnucash stable: Multiple changes pushed

Christopher Lam clam at code.gnucash.org
Thu May 2 10:22:13 EDT 2024


Updated	 via  https://github.com/Gnucash/gnucash/commit/4c29f69d (commit)
	 via  https://github.com/Gnucash/gnucash/commit/87dbbf25 (commit)
	from  https://github.com/Gnucash/gnucash/commit/2c6f1509 (commit)



commit 4c29f69d673036270ff9ab5da5642bcb9694b280
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sun Apr 28 23:12:56 2024 +0800

    [engine.i] even faster gnc_get_match_commodity_splits
    
    gnc_get_match_commodity_splits needs to scan the account splitlists to
    find suitable splits upto end_date. Because splitlist is date-sorted,
    use gnc_account_foreach_split_until_date to avoid scanning later
    splits.

commit 87dbbf25f8a7c02d4f15c608ca8be2e1e37b94b5
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Wed Apr 24 13:44:54 2024 +0800

    [account.cpp] add gnc_account_foreach_until_date
    
    - uses binary search to find first split after date
    - for_each from earliest split to (but excluding) the above first split



Summary of changes:
 bindings/engine.i             | 28 ++++++++++++++++++----------
 libgnucash/engine/Account.cpp | 16 ++++++++++++++++
 libgnucash/engine/Account.hpp |  3 +++
 3 files changed, 37 insertions(+), 10 deletions(-)



More information about the gnucash-patches mailing list