Quote:
Originally Posted by fowlplay4
Specifying findNPC every time appears to take twice as long (in my benchmark anyway) compared to variable and direct methods.
|
According to Stefan, it's similar to how it works when you check boolean values.
This:
PHP Code:
function onCreated() {
temp.bool = true;
if (bool == true) {
//Stuff
}
}
Is supposed to take longer to process than this:
PHP Code:
function onCreated() {
temp.bool = true;
if (bool) {
//Stuff
}
}