On Fri, Mar 19, 2010 at 11:59 PM, Benjamin Scott
<[email protected]> 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.

> 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.

-- 
PJH

http://shabbleland.myminicity.com/tra
http://www.chavgangs.com/register.php?referer=9375

Reply via email to