Optimization
#8

Thank you,


I did what you told me to do for the switch instead of reason, I don't understand what do you mean by this:

Код:
Use >> and << for division and multiplication of numbers by powers of 2.
number & (divisor - 1) for powers of 2 will give the remainder - this is faster!

Use static and avoid useless initializations of variables in functions.
"Use proper arrays with proper size.You are wasting so many cells."
How can I how many cells I need please ? Is there a tool that can do it or something like that ?


Thank you !
Reply


Messages In This Thread
Optimization - by anou1 - 13.02.2014, 11:27
Re: Optimization - by ACI - 13.02.2014, 11:33
Re: Optimization - by venomlivno8 - 13.02.2014, 11:35
Re: Optimization - by anou1 - 13.02.2014, 14:32
Re: Optimization - by Tamer - 13.02.2014, 15:25
Re: Optimization - by anou1 - 13.02.2014, 15:35
Re: Optimization - by Yashas - 13.02.2014, 16:35
Re: Optimization - by anou1 - 13.02.2014, 18:10
Re: Optimization - by Tamer - 13.02.2014, 18:21
Re: Optimization - by Yashas - 13.02.2014, 18:29

Forum Jump:


Users browsing this thread: 1 Guest(s)