P
Peter Bailey
There are numerous optimizations possible...
Good suggestions all, Mohit. But, I just had to get this thing working
first, to get "the work out," so to speak. And, yes, when I have time, I
will look at what you suggest. Cheers.
* You could consider putting all the budget posts in an array and
iterating over the array using a smaller loop code.
* You could check what month it is and check only the budget posts
(month-1) and (month) and (month+1). If I'm not wrong, no more than 3
budget periods will fall in the same month - it's a bit convoluted
though
* If you are in fact creating the budget fenceposts as you go along, you
don't need to generate all 12.. just generate till you find the one you
are looking for.
Anyway, there are a few options - enjoy!
Cheers,
Mohit.
9/26/2007 | 11:38 PM.
Good suggestions all, Mohit. But, I just had to get this thing working
first, to get "the work out," so to speak. And, yes, when I have time, I
will look at what you suggest. Cheers.