-
-
Notifications
You must be signed in to change notification settings - Fork 587
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
Draft: consume js inputFileSystem
on the rust side
#8643
Conversation
✅ Deploy Preview for rspack canceled.Built without sensitive environment variables
|
e46d8a3
to
3162187
Compare
inputFileSystem
on the rust sideinputFileSystem
on the rust side
d6c9a1b
to
2627707
Compare
086d822
to
7a4d76e
Compare
Hi guys, I have been struggling to investigate the CI "Test Node 18" failure for 2 days. I feel I really need your help. I believe my implementation can pass all the tests if the tests are run separately. My findings so far are that it's stuck in
even if the output is the same. |
thanks it maybe related to performance regression, block_on fs binding will cause huge performance regression I think the biggest blocker now is rspack_resolver doesn't use async_fs, which cause it has to block_on on fs binging call, which will introduce huge performance regression web-infra-dev/rspack-resolver#34. but we can still merge this pr first if we don't enable input_fs binding by default and when we solve the rspack_resolver async_fs problem, we can enable inputfs binding |
yeah, I also suspect the performance regression, but cannot prove it. I'm afraid we cannot merge this PR now, because rspack/packages/rspack/src/rspack.ts Lines 53 to 62 in 5ad5803
and rspack/packages/rspack/src/node/NodeEnvironmentPlugin.ts Lines 49 to 53 in 9e1205c
if you feel the refactors in this pr are needed, I can create a new pr and cherry pick the refactor commits. |
I actually tried it before and revert cause huge performance regression introduced, you can test it in project with large modules like https://github.com/hardfist/performance-compare-ng/tree/master/apps/10000 |
that's easy, you can just ignore the inputFileSystem in the rust side, it's actually current's behavior |
I disabled I also created another branch and cherry-picked the refactor commits. maybe #8654 is exactly what you expect. |
yes, good job! |
Summary
resolves #5091
Checklist