[GNC] Check all

R Losey rlosey at gmail.com
Wed Jul 26 14:21:00 EDT 2023


On Wed, Jul 26, 2023 at 5:50 AM Christopher Lam <christopher.lck at gmail.com>
wrote:

> On Wed, 26 Jul 2023 at 11:32, john <jralls at ceridwen.us> wrote:
>
> > Yeah, it's gotten a lot faster since Chris Lam figured out it was
> checking
> > every transaction for every split in the transaction and fixed it to only
> > traverse the transactions once.
> >
>
> This was only 1 part of the speedup: each typical (2 or more splits)
> transaction was being scrubbed as many times as they have splits. This was
> PR 1651.
> The more significant speedup was to eliminate the xaccTransBegin/CommitEdit
> before the scrub, and only call them if the transaction needed to be
> scrubbed. PR 1654.
> Benchmarks:
> https://github.com/Gnucash/gnucash/pull/1654#issuecomment-1573876944
> _______________________________________________
>

Wow!  That's QUITE a speed up; I remember it taking 30 seconds to a minute
or longer, and now it's so fast, it's almost unnoticeable.

Note: It may be useful to add some kind of notice that the check has
completed... I wasn't aware of the speedup, and thought it was throwing an
error and aborting.


_________________________________
Richard Losey
rlosey at gmail.com
Micah 6:8


More information about the gnucash-user mailing list