Thread: New Emotions
View Single Post
  #7  
Old 10-10-2008, 10:19 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by DustyPorViva View Post
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.keymapsthis.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 View Post
awe, yea... I always say "circle" instead of control..so...>>;
There's no t in circle, silly.
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote