-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The iterator for
arguments
sucks - refactor to avoid calling it
The `arguments` iterator is extremely slow, and as such adds a significant amount of overhead when called in the middle of a hot loop. Manually iterating instead results in a large performance gain, and avoiding the arguments object entirely for the first value gains a little more.
- Loading branch information
Showing
1 changed file
with
34 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters