i think you should still investigate using conditional loop
in your
function instead of having it call itself over and over with
each
iteration, passing more and more data around... it does not
look like
the best setup to me...
I took your advice and used a conditional loop instead of a
recursive function - never thought about doing it that may!
On the upside, it also sorted another problem out for me that
I was having AND it gives about a 5-10% improvement on execution
time. This is only with 3 nodes...with even more I bet that gap
increases ever more.
Thanks for helping me write tighter code!! (new function
attached)
Mikey.
A
Anonymous
November 17, 2008
It's okay thanks. I figured it out. All it required was a
simple:
is your function calling itself in its execution? that's why
your array
is being re-created with each call...
sounds like you should be using a conditional loop... maybe
something like:
<cfset var functionItemID = arguments.itemID />
<cfset var bcArray = arraynew(1)>