testing the book zeroing code (maybe for backport?) <<Offline>>

"Andreas Köhler" andi5.py at gmx.net
Fri Feb 29 11:10:03 EST 2008


Hi Derek,

> Andrew Sackville-West <andrew at swclan.homelinux.org> writes:
> 
> > On Thu, Feb 07, 2008 at 04:37:35PM -0500, Derek Atkins wrote:
> >
> > ...
> >
> >> 
> >> Well, it's possible that GetBalanceAsOfDate goes forward in time
> >> instead of backwards in time, which means that the more transactions
> >> you have the longer it takes.
> >
> > might be a source of problems in income statement as well as I think
> > we use the same code... mine's already getting too slow and the I only
> > got the fix in my stable version. sheesh.
> >
> > A
> >
> > ps. doh, I see you already basically said that...
> 
> Unfortunately, AFAICT, there's no way to get to the tail of a GList
> short of walking it.  Even though it's a doubly-linked list, there's
> no "list tail".  The ends are NULL.
> 
> So.. We could probably solve this by keeping a tail pointer and
> then we could search from the end instead of the front.

FWIW, I think that is what GQueues are made for.

-- andi5

-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser


More information about the gnucash-devel mailing list