You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Storybook takes 10-15 seconds to launch in production. Most of the time (7-10 seconds) is spent in transformStoriesRawToStoriesHash repeatedly calling merge.
Screenshots of both are provided below. This only occurs for us when building for production. We have 505 stories in our storybook.
To Reproduce
Steps to reproduce the behavior:
Build storybook for production build-storybook --docs -c .storybook -o .storybook-dist
Start the server, load a page in your browser.
Wait 10-15 seconds until the page loads.
Update: I've since confirmed that this also occurs in development mode.
koop-stripe
changed the title
Storybook takes 10-15 seconds to launch in production (baseMerge slowdown)
Storybook takes 10-15 seconds to launch in production, 30 seconds to launch in development (baseMerge slowdown)
Jul 17, 2020
koop-stripe
changed the title
Storybook takes 10-15 seconds to launch in production, 30 seconds to launch in development (baseMerge slowdown)
Storybook >10 seconds to launch, slowed down by merge in transformStoriesRawToStoriesHash
Jul 17, 2020
Describe the bug
Storybook takes 10-15 seconds to launch in production. Most of the time (7-10 seconds) is spent in
transformStoriesRawToStoriesHash
repeatedly callingmerge
.Screenshots of both are provided below. This only occurs for us when building for production. We have 505 stories in our storybook.
To Reproduce
Steps to reproduce the behavior:
build-storybook --docs -c .storybook -o .storybook-dist
Update: I've since confirmed that this also occurs in development mode.
Expected behavior
Don't wait 10-15 seconds. 😛
Screenshots
Full performance view:
Zoomed in on
baseMerge
calls:System:
System:
OS: macOS 10.15.4
CPU: (8) x64 Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz
Binaries:
Node: 10.16.0 - ~/.nodenv/versions/10.16.0/bin/node
Yarn: 1.19.1 - ~/.yarn/bin/yarn
npm: 6.9.0 - ~/.nodenv/versions/10.16.0/bin/npm
Browsers:
Chrome: 83.0.4103.116
Firefox: 78.0.1
Safari: 13.1
npmPackages:
@storybook/addon-docs: 6.0.0-rc.5 => 6.0.0-rc.5
@storybook/react: 6.0.0-rc.5 => 6.0.0-rc.5
The text was updated successfully, but these errors were encountered: