Quote:
Originally Posted by DustyPorViva
I'm really not following where you're getting at, heh.
|
PHP Code:
this.emote = (keymod in |577,602|)?this.keymap[keymod-577]:"None";
1 evaluation, order unity runtime.
vs.
PHP Code:
if (keymod in this.keymaps) this.emote = this.keymaps[this.keymaps.index(keymod)+1];
else this.emote = "None";
1 evaluation, linear runtime. This would take on average more than 13.5 evaluations. (compare below).
vs. (on average 13.5) if/elseif/else statements:
1-27 evaluations, each of order unity runtime.
Quote:
Originally Posted by Clockwork
awe, yea... I always say "circle" instead of control..so...>>;
|
There's no t in circle, silly.