-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change new Date() to Date.now() to save on date allocations
Summary: `new Date().getTime()` is equal to `Date.now()`. `Date.now()` avoids an allocation, which can save some GC time. This micro-optimization isn't worth it in most places, but since MessageQueue is one of the hottest pieces of JS in RN, it's worth it. Reviewed By: javache Differential Revision: D9972334 fbshipit-source-id: 05d78fd65304f0f27115d76b8b52db11a52c86a0
- Loading branch information
1 parent
f409fd8
commit bbb2d9a
Showing
1 changed file
with
5 additions
and
5 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