--- In [email protected], Paul Herring <pauljherr...@...> wrote: > > On Fri, Mar 19, 2010 at 11:59 PM, Benjamin Scott > <benjamin_cail_sc...@...> wrote: > > In either case, Optimizing should only include > > functions that are ran the most. > > And of the program I gave, which functions do you think were "ran the > most?" Hint: The answer can be found in the profiling output.
They were all ran equally as often! > > > According to > > 'Optimizing C" by I forget who, 90% of the > > execution time of a program is spent in 10% > > of the code. Based on this, I'd recommend > > concentrate on getting the code working > > with the Security required, then optimize: > > Completly ignoring all initializing functions. > > If the initialising functions take a long time (as they did in the > example I gave,) then they shouldn't be ignored. Especially if the > rest of the program doesn't take much time, and more especially if the > program is run frequently. I was referring to a much longer program, like a computer game: Not a test program. > > -- > PJH > > http://shabbleland.myminicity.com/tra > http://www.chavgangs.com/register.php?referer=9375 >
