Postured
|
  |
| Joined: 02 Feb 2012 |
| Total Posts: 114 |
|
|
| 09 May 2013 07:35 PM |
| Could someone help me out with what runs faster than what, and things like that? Stuff to optimize the performance of my scripts to run as fast as they possibly can? |
|
|
| Report Abuse |
|
|
pwnedu46
|
  |
| Joined: 23 May 2009 |
| Total Posts: 7534 |
|
|
| 09 May 2013 07:38 PM |
| https://twitter.com/pwnedu462/status/324309111732850689 |
|
|
| Report Abuse |
|
|
Postured
|
  |
| Joined: 02 Feb 2012 |
| Total Posts: 114 |
|
|
| 09 May 2013 07:45 PM |
Very interesting article, thank you.
Any other tips while I'm blazing through it? |
|
|
| Report Abuse |
|
|
Postured
|
  |
| Joined: 02 Feb 2012 |
| Total Posts: 114 |
|
| |
|
Postured
|
  |
| Joined: 02 Feb 2012 |
| Total Posts: 114 |
|
| |
|
Tj3
|
  |
| Joined: 12 Mar 2008 |
| Total Posts: 677 |
|
|
| 16 May 2013 10:33 PM |
Well, there's a saying that says "Premature optimization is the root of all evil." My most important suggestion is stay away from it unless you identify a clear need for it.
In general, something that will help with speed, and also result in better code in general, is to use locals. Locals don't require the table lookup that global variables do, and they prevent issues that arise from non-local variables in different scopes interfering. |
|
|
| Report Abuse |
|
|
Postured
|
  |
| Joined: 02 Feb 2012 |
| Total Posts: 114 |
|
|
| 04 Jun 2013 05:06 PM |
The reason I am looking for optimized performance is because I am started on a rather large project. I would like to build the optimization in rather than have to tediously add it in later.
Thanks for the tip about locals, although I already knew that. It's an often overlooked fact. |
|
|
| Report Abuse |
|
|