gnucash master: [new-aging] speed up split->owner

Christopher Lam clam at code.gnucash.org
Fri May 22 22:18:23 EDT 2020


Updated	 via  https://github.com/Gnucash/gnucash/commit/d8aecf96 (commit)
	from  https://github.com/Gnucash/gnucash/commit/f2a13eca (commit)



commit d8aecf9695eb558277b967148b4eca26ca6a1f27
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat May 23 05:50:08 2020 +0800

    [new-aging] speed up split->owner
    
    several speed ups
    
    1. split->owner will now cache results, bypassing
    gncOwnerGetOwnerFromLot and gncInvoiceGetInvoiceFromLot for repeated
    calls to the same split.
    
    2. previously each call to split->owner would allocate a new
    gncOwner. now a new gncOwner is only allocated during a cache
    miss. the list of gncOwners is maintained and is purged when
    split->owner is called with #f. There is no need to maintain a tofree
    list of gncOwners anymore.
    
    3. instead of slow gncOwnerReturnGUID to test equality, use gncOwnerEqual



Summary of changes:
 gnucash/report/reports/standard/new-aging.scm | 57 ++++++++++++---------------
 1 file changed, 26 insertions(+), 31 deletions(-)



More information about the gnucash-patches mailing list