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

[Optimize]: generate stats.toJson maybe need optimization #7070

Closed
easy1090 opened this issue Jul 8, 2024 · 0 comments · Fixed by #7344
Closed

[Optimize]: generate stats.toJson maybe need optimization #7070

easy1090 opened this issue Jul 8, 2024 · 0 comments · Fixed by #7344
Assignees
Labels
A-performance Area: performance related bug Something isn't working

Comments

@easy1090
Copy link
Collaborator

easy1090 commented Jul 8, 2024

System Info

System:
OS: macOS 13.2.1
CPU: (12) x64 Apple M2 Max
Memory: 26.10 MB / 64.00 GB
Shell: 5.8 - /usr/local/bin/zsh
Binaries:
Node: 16.20.0 - ~/.nvm/versions/node/v16.20.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v16.20.0/bin/yarn
npm: 8.19.4 - ~/.nvm/versions/node/v16.20.0/bin/npm
pnpm: 6.23.6 - ~/.nvm/versions/node/v18.19.0/bin/pnpm
Browsers:
Chrome: 126.0.6478.127
Safari: 16.3

Rspack: v0.7.4

Details

stats.toJson takes 20s, statsOptions is :

{
  all: false,
  chunks: true,
  modules: true,
  assets: true,
  chunkModules: true,
}

toJson profiling is:
image

profile file:

CPU.20240704.111213.75007.0.001.cpuprofile.zip

Reproduce link

No response

Reproduce Steps

  • rush update
  • rushx build with --json.
@easy1090 easy1090 added bug Something isn't working pending triage The issue/PR is currently untouched. labels Jul 8, 2024
@hardfist hardfist added A-performance Area: performance related and removed pending triage The issue/PR is currently untouched. labels Jul 8, 2024
@easy1090 easy1090 changed the title [Optimize]: stats.toJson takes 20 seconds [Optimize]: generate stats.toJson maybe need optimization Jul 8, 2024
@SyMind SyMind mentioned this issue Jul 31, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-performance Area: performance related bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants