M
marcus
I have a tree that I do recursion over the nodes (and then some
recursion inside the nodes...). Two problems:
1) Stack level too deep (error message)
2) Speed get really really lousy when the tree is deep. With a small
shallow tree the speed is nice. I get that the overall time get long but
the handling of each node is slow in a deep tree.
Any way around these issues? I should say that it's running in a Rails
environment on Win, Ruby 1.8.2
/Marcus
recursion inside the nodes...). Two problems:
1) Stack level too deep (error message)
2) Speed get really really lousy when the tree is deep. With a small
shallow tree the speed is nice. I get that the overall time get long but
the handling of each node is slow in a deep tree.
Any way around these issues? I should say that it's running in a Rails
environment on Win, Ruby 1.8.2
/Marcus