-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Closed as not planned
Labels
enhancementNew feature or requestNew feature or requestp4-importantViolate documented behavior or significantly improves performance (priority)Violate documented behavior or significantly improves performance (priority)performancePerformance related enhancementPerformance related enhancement
Description
Vite's current biggest performance bottleneck is first page load with large amount of modules. This is mostly caused by congestion at the browser network layer, since every module results in a full HTTP GET request on fresh server start.
To improve this, we can dump the in memory transform cache to disk on server close, and "hydrate" the module graph on next server start (the hydration should only fill in the cache for files with still fresh mtimeMs
). The cache can be dumped in one file so it should be relatively fast to deal with. This allows the server to directly send 304s even on a restart.
aleclarson, Jaeiya, daliborgogic, stafyniaksacha, CharlesOkwuagwu and 118 moreMartinMalinda, CharlesOkwuagwu, maciej-trebacz, lubanproj, DannyFeliz and 35 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestp4-importantViolate documented behavior or significantly improves performance (priority)Violate documented behavior or significantly improves performance (priority)performancePerformance related enhancementPerformance related enhancement