Hi, I'm using a recursive algorithm that seemed to work quite well when called from my main() function, but now i'm trying to run through different scenarios and when i call it from another function (ie main() --> subfunc() --> recurs() ) it seems to have slowed down by at LEAST a factor of 10.
Has anyone had this problem before, perhaps with a compiler failing to optimize code that is not called directly from main()?
And i am using the borland command line compiler (think it is vers. 5?)
Thanks for any help you can shed on the subject.