-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[kbn-storybook] Kill tsdocgen for immediate perf improvement #74059
[kbn-storybook] Kill tsdocgen for immediate perf improvement #74059
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@streamich Damn typo. Fixed and tested with same command. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice ~5m build down to 30s on MacBook Pro 2018
💚 Build SucceededBuild metrics
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running yarn storybook --site apm
:
before:
✨ Done in 738.42s.
739.24 real 961.56 user 63.04 sys
after:
✨ Done in 299.82s.
300.04 real 463.74 user 20.44 sys
yarn storybook apm
also fast (I didn't do a before
because I know it took a long time, just seeing if it's acceptable; it is!)
Storybook 5.3.19 started │
│ 32 s for manager and 1.35 min for preview
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Friendly reminder: Looks like this PR hasn’t been backported yet. |
…#74059) * [kbn-storybook] Kill tsdocgen for immediate perf improvement * Addressing feedback
Summary
This reorganizes the
webpack.config.js
file to usewebpackMerge
and temporarily disables thetsdocgen
plugin, (the source of a massive slowdown when writing TS stories). You should see an immediate improvement in startup time.It also makes a slight tweak: if a plugin needs to utilize the
webpackHook
, (which none do at the moment, but Canvas will), it will pass not the Storybook config, but the already altered base config fromkbn-storybook
. This is a passive change.Effect
Before using
ui_actions_enhanced
-1.88m
+2.03m
=3.91m
startup:After -
19s
+28s
=47s
startup: