Ferrous Moon
http://www.ferrousmoon.com:80/forums/

Need help on small C++ program...
http://www.ferrousmoon.com:80/forums/viewtopic.php?f=52&t=701
Page 2 of 2

Author:  Miah [Wed Jul 12, 2006 12:46 am ]
Post subject: 

Quote:
Quote:
maybe thats the reason darwinia is so slow too (a t least last time i tried it)
It's likely.
It's not.

Author:  Tycho [Wed Jul 12, 2006 1:52 am ]
Post subject: 

Quote:
Quote:
Quote:
maybe thats the reason darwinia is so slow too (a t least last time i tried it)
It's likely.
It's not.
Poor optimization? I'd say so. We both know that Introversion is stupid when it comes to code optimization.

Author:  Burningmace [Wed Jul 12, 2006 1:53 pm ]
Post subject: 

Hmm... I was always taught that recursion was a good thing. Then again, I'm talking about VB...

Author:  prophile [Thu Jul 13, 2006 11:39 am ]
Post subject: 

Quote:
Quote:
Code:
#include <iostream> using namespace std; int main ( int argc, char** argv ) { static int num = 0; cout << num << endl; num++; main ( argc, argv ); }
Recursion for the win!
BAD idea. Do you realize that one of the main reasons Chris Delay's BTree is so slow is due to using recursion? The reason is that it keeps filling the call stack with more and more function calls. Eventually, you get a call stack overflow. NEVER use recursion. EVER.
Yes, I know that would result in a call stack fault. I just felt like borking things up a bit.

Author:  Miah [Fri Jul 14, 2006 12:06 am ]
Post subject: 

Quote:
Quote:
Quote:
It's likely.
It's not.
Poor optimization? I'd say so. We both know that Introversion is stupid when it comes to code optimization.
I was refering to recursion.

Author:  Tycho [Sat Jul 15, 2006 7:45 pm ]
Post subject: 

Quote:
I was refering to recursion.
In that case, you're probably correct. I would doubt IV had learned nothing from their mistakes.

Page 2 of 2 All times are UTC-05:00
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/