Andrew Sackville-West <[EMAIL PROTECTED]> 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. -derek -- Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory Member, MIT Student Information Processing Board (SIPB) URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH [EMAIL PROTECTED] PGP key available _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel