3 ms·
If you're really having performance problems that will be fixed like that then why not use Duff's Device? It's (and this is sure sayin' something) easier to rea
by weeksie 16y ago
If you're really having performance problems that will be fixed like that then why not use Duff's Device? It's (and this is sure sayin' something) easier to read than that.
- saurik 16y agoBecause Duff's device involves a switch outside a while with cases inside, syntax that is not allowed by JavaScript (which carefully defines a switch to consist of case clauses, each of which posessing a statement list). That said, you could still do something at least reasomably similar inside of the while (with an offset that you reset in the loop increment expression).