View Single Post
Old 25.05.2006, 17:54   #19
torune
Архивный участник
 
Join Date: Jul 2005
Posts: 371
Default

i never think too much about performance until the moment i met C++ template meta-programming.
my instructor demonstrated two piece of c++ codes which shocked the entire class.
a simple Factorial Function with timer, normally we would use recursion on this on and most of us think it's the fastest way to achieve it.
guess what, its not.
takes about couple minutes to do 40! (or seconds i cant remember)
the other one is Zero second.

ya i know, it got nothing to do with c++/c# comparison. [offtopic]
torune is offline