mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
75a154b449
Summary: Removes the use of `parseErrorStack` in `_allocateCallback`, which was used to determine which timer API was allocating the callback (for Systrace purposes). Instead, we now use the already-existing `type` argument, which achieves the exact same thing but is much faster than parsing the stack trace. Changelog: [General] [Fixed] - Reduce overhead of setting up timers in DEV Reviewed By: yinghuitan Differential Revision: D18233182 fbshipit-source-id: 190c0ffad8734cd889b790248e5a77cfb147454b