I was trying to optimize my code and noticed that in the function call stack my there were 18 frames... It this high or is it quite normal..
I am trying to make some functions inline...
any suggestions...
I was trying to optimize my code and noticed that in the function call stack my there were 18 frames... It this high or is it quite normal..
I am trying to make some functions inline...
any suggestions...
Inline function could lead to bloated compiled code. How aften does the application call the function?
Kuphryn
Have you tried turning on the compilers optomization?
Originally Posted by kuphryn
well since its a server application the functions are called say atleast 20 to 30 times in a given second (based on load)....
and yes I have tried using the O2 and O3 flags in gcc
I think kuphryn meant how often does the function get called inside of the code, not how often does it get called during runtime.
Have you tried just using the O1 flag? Remember that O2 and O3 don't always give the best results (because best is subjective)
Now when you say there were 18 frames, do you mean that the frame pointer was adjusted 18 times in the same function or that the function was 18 functions deep? If its the former then there is something going wrong, if its the later it doesn't sound that bad.
thanx... i will try the O1 flag... The function is called from around 8 places int he code.... and the function was 18 functions down.. seems ok then..Originally Posted by Thantos