-
Notifications
You must be signed in to change notification settings - Fork 30.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
timers: improve linked list performance
By moving the linked list manipulations out of a separate module and into `lib/timers.js`, a significant performance increase is seen in the timer benchamrks. I am seeing consistent 50% improvement with a p-value of .0005 for the "breadth" benchmark with "thousands" set to 5. This is probably due to removing the overhead of calling an external function and possibly also removing some special handling that is not needed in some cases.
- Loading branch information
Showing
2 changed files
with
48 additions
and
18 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
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