Perf regression on v0.38.0 for HMR on Storybook + Vite #2608
Replies: 7 comments 2 replies
-
Should have wrote the description more like, "quickly goes up to 4+ seconds, and keeps going up". |
Beta Was this translation helpful? Give feedback.
-
I think I found the root cause. I ran clinic flame on my storybook to see what code is taking so long to finish. Turns out it is The top 5 hottest blocks are from Flame graph using where I removed |
Beta Was this translation helpful? Give feedback.
-
It looks like |
Beta Was this translation helpful? Give feedback.
-
I disabled |
Beta Was this translation helpful? Give feedback.
-
It looks like a bug in the |
Beta Was this translation helpful? Give feedback.
-
Hmm. It seem i got the issue same with you with HMR and i using Vite... HMR slower after each changes and after restart Vite it normally but slower again |
Beta Was this translation helpful? Give feedback.
-
hey, I wanted to look into this issue but couldnt reproduce it, can you send a minimal repro ? btw thank you for the investigation, yes it's most likely the CacheMap, I made a PR that removes it in the Utility class so that Panda can properly de-duplicate styles |
Beta Was this translation helpful? Give feedback.
-
Description
I noticed that HMR gets slower and slower after each change on Storybook after upgrading from v0.37.2. Versions from v.0.38.0 on seem to all have the issue.
I didn't check if it affects vite only, or also webpack.
Link to Reproduction
Sorry, no reproduction
Steps to reproduce
DEBUG="vite:plugin-transform" storybook dev
JS Framework
React
Panda CSS Version
0.38.0
Browser
No response
Operating System
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions