testing the book zeroing code (maybe for backport?) <<Offline>>
Derek Atkins
warlord at MIT.EDU
Fri Feb 29 10:22:39 EST 2008
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.
-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
warlord at MIT.EDU PGP key available
More information about the gnucash-devel
mailing list