-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid loading files that we know are binary ahead of time #5612
Conversation
'.ttf', | ||
'.woff', | ||
'.woff2', | ||
].sort()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need to sort this? This seems like unnecessary overhead to do in every worker. Can you just alt+f5 it upfront?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are making so happy.
Codecov Report
@@ Coverage Diff @@
## master #5612 +/- ##
==========================================
+ Coverage 60.63% 60.64% +<.01%
==========================================
Files 213 214 +1
Lines 7311 7315 +4
Branches 3 3
==========================================
+ Hits 4433 4436 +3
- Misses 2877 2878 +1
Partials 1 1
Continue to review full report at Codecov.
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Avoids
jest-haste-map
reading formats we know they are binary, even when requested to do so viaextensions
. This fixes a bug in Metro, where, in order to process assets, we need to pass Haste the corresponding extensions, but causes an OOM when opening a ~600 Mb video.