Things to make my script more efficient
#2

Well there are few general suggestion:
  • Not to create useless variables: Create as less variables as you can and manage them in an intelligent way.
  • Efficient control of loops: foreach is a good alternative to not-continuous groups (for example players or vechiles)
  • Efficient control of array: Do not create arrays with useless cells
  • Use packed strings: Packed strings are a good way to save spaces and resources. These are not well known
  • Using automata: Sometimes automata permits to save space
Anyway you should create codes that:
-Run codes that take less time to execute as possibile (run few test if you are not sure of a code efficienty)
-Try to code in an intelligent way obviously

Good work.
Reply


Messages In This Thread
Things to make my script more efficient - by Luis- - 10.12.2011, 23:01
Re: Things to make my script more efficient - by Phanto90 - 10.12.2011, 23:26
Re: Things to make my script more efficient - by Luis- - 10.12.2011, 23:27
Re: Things to make my script more efficient - by Luis- - 11.12.2011, 12:20
Re: Things to make my script more efficient - by THE_KNOWN - 11.12.2011, 12:26
Re: Things to make my script more efficient - by Finn - 11.12.2011, 12:46
Re: Things to make my script more efficient - by PlayHard - 11.12.2011, 12:52
Re: Things to make my script more efficient - by Finn - 11.12.2011, 13:17
Re: Things to make my script more efficient - by grand.Theft.Otto - 11.12.2011, 15:24

Forum Jump:


Users browsing this thread: 1 Guest(s)