PDF4PRO ⚡AMP

Modern search engine that looking for books and documents around the web

Example: bachelor of science

Lua Performance Tips

Back to document page

2Lua Performance TipsRoberto IerusalimschyIn Lua, as in any other programming language, we should always follow the twomaxims of program optimization :Rule #1:Don t do #2:Don t do it yet.(for experts only)Those rules are particularly relevant when programming in Lua. Lua is famousfor its Performance , and it deserves its reputation among scripting , we all know that Performance is a key ingredient of program-ming. It is not by chance that problems with exponential timecomplexity arecalledintractable. A too late result is a useless result. So, every good program-mer should always balance the costs from spending resourcesto optimize a pieceof code against the gains of saving resources when running that first question regarding optimization a good programmeralways asks is: Does the program needs to be optimized? If the answer is positive (but onlythen), the second question should be: Where?

the optimization actually improved our code. Once you decide that you really must optimize your Lua code, t his text may ... must run code that is really dynamic, such as code entered by a n end user, you seldom need to compile dynamic code. As an example, consider the next code, which creates a table w ith functions ...

  Performance, Dynamics, Tips, Optimization, Lua performance tips

Download Lua Performance Tips


Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Spam in document Broken preview Other abuse

Related search queries