react-native/Libraries/BatchedBridge
Riley Dulin bbb2d9a5b3 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
2018-09-21 11:11:33 -07:00
..
__mocks__ Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
__tests__ Remove some automocks from tests 2018-09-18 04:18:11 -07:00
BatchedBridge.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
MessageQueue.js Change new Date() to Date.now() to save on date allocations 2018-09-21 11:11:33 -07:00
NativeModules.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00