Skip to content
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

Merged
merged 1 commit into from
Feb 19, 2018
Merged

Avoid loading files that we know are binary ahead of time #5612

merged 1 commit into from
Feb 19, 2018

Conversation

mjesun
Copy link
Contributor

@mjesun mjesun commented Feb 19, 2018

Avoids jest-haste-map reading formats we know they are binary, even when requested to do so via extensions. 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.

'.ttf',
'.woff',
'.woff2',
].sort());
Copy link
Member

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?

Copy link
Member

@cpojer cpojer left a 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-io
Copy link

Codecov Report

Merging #5612 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
packages/jest-cli/src/search_source.js 45.07% <ø> (ø) ⬆️
packages/jest-haste-map/src/blacklist.js 100% <100%> (ø)
packages/jest-haste-map/src/worker.js 96% <100%> (ø) ⬆️
packages/jest-config/src/normalize.js 93.4% <0%> (ø) ⬆️
.../src/legacy_code_todo_rewrite/jest_adapter_init.js 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f5879c0...414e63a. Read the comment docs.

@github-actions
Copy link

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.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants