storybook: [Bug]: Degraded startup performance with storyStoreV7
Describe the bug
We finally removed all the storiesOf syntax to use storyStoreV7, but after enabling storyStoreV7 we noticed a huge startup time increase. We have a big monolithic repository so the performance wasn’t that good even before but after enabling storyStoreV7 the startup time for preview went from 1min to more than 2mins and for manager from 150ms to 17s.
We are using webpack@5 and babel for building.
storyStoreV7: false
storyStoreV7: true
Storybook 8
To Reproduce
Unfortunately, I cannot share the repository. But I tested in one of our public repositories and the degradation is noticeable even though we are using Vite there (140ms -> 1.1s for manager, 5.4s to 8s for UI).
You can use next-major branch in https://github.com/securityscorecard/design-system/tree/next-major. And disable storyStoreV7 in .storybook/main.ts.
System
Storybook Environment Info:
System:
OS: macOS 14.4
CPU: (10) arm64 Apple M1 Pro
Shell: 5.9 - /opt/homebrew/bin/zsh
Binaries:
Node: 18.19.1 - ~/.nvm/versions/node/v18.19.1/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn <----- active
npm: 10.2.4 - ~/.nvm/versions/node/v18.19.1/bin/npm
pnpm: 8.15.1 - ~/.nvm/versions/node/v18.19.1/bin/pnpm
Browsers:
Chrome: 122.0.6261.129
Edge: 122.0.2365.92
Safari: 17.4
npmPackages:
@storybook/addon-actions: ^7.6.10 => 7.6.10
@storybook/addon-essentials: ^7.6.10 => 7.6.10
@storybook/react: ^7.6.10 => 7.6.10
@storybook/react-webpack5: ^7.6.10 => 7.6.10
msw-storybook-addon: ^1.10.0 => 1.10.0
storybook: ^7.6.10 => 7.6.10
Additional context
I wouldn’t mind staying off the storyStoreV7 but we wanted to migrate to v8 and since there is no choice I’m raising this.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 26 (23 by maintainers)
@tmeasday I’ll need to retest the
fsCacheandlazyCompilation, because honestly I don’t remember what issue I had with those and since then we made some changes in our webpack. About upgrading to 8.4 I’m relatively overwhelmed by closing the projects, but I should be free in the second half of December so I can get back to this.hey folks 👋 I must say we also see some performance issues with v8 vs v7 🤔 They are close, but still v8 objectively slower building manager and preview on a large codebase