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
Currently the warm starts with webpack are slightly better than the cold starts with rspack. This is preventing us to move to rspack for local development. This support of persistent cache is a must have to onboard developers for their local development.
What does the proposed API of configuration look like?
This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
I'm not totally able to understand the design, but just wanted to make sure that you consider supporting these f:
Persistent caching should be optimized to work well when compiling multiple module graph variants (client, server, RSC...) using multi-compiler, layers etc
We are compiling 3 localized apps in 2 variants (client/server). The localized apps share a lot of code in common, apart the content itself (MDX).
My ideal expectations for a greatly optimized caching system (for both memory/persistent)
// Slower on cold buildscompile(clientConfig)// A bit faster since it can reuse some of the client config cache (memory or persistent)compile(serverConfig)// Fastest since it can reuse server config cachecompile(serverConfig)
// Faster than compiling each config using cold cachescompile([clientConfig,serverConfig])
// Slower on cold buildscompile(french);// A bit faster since it can reuse some of the french config cache (memory or persistent)compile(english)// Fastest since it can reuse english config cachecompile(english)
Does this make sense?
What didn't work well for us in how Webpack designed its persistent cache is that when running sequential compilations, the latest compilation was somehow overriding all the previous ones, instead of having a way to "append" to the persistent cache.
For example:
// Cold build => slowcompile(french)// Warm build but different locale => decent amount of cache hits => a bit faster compile(english)// Warn build with the exact same locale as last compilation => many cache hits => fastest 🎉compile(english)// Warm build with different locale => Unfortunately not as fast as we hoped! 😭compile(french)
@slorber The current design of rspack persistent cache does not support shared cache with different configurations. For your needs, the configuration and conclusions on rspack persistent cache are consistent with those of webpack.
This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
Activity
stale commentedon Apr 19, 2024
This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
NetherGranite commentedon Apr 20, 2024
Bump 🙂
pushkargupta9807 commentedon May 6, 2024
Bump :)
woshirubbish commentedon May 20, 2024
Bump
huhuaaa commentedon May 31, 2024
Bump
childrentime commentedon Jul 17, 2024
@jerrykingxyz I think when solving this problem, we can conveniently add remote caching functionality. https://turbo.build/repo/docs/core-concepts/remote-caching
hardfist commentedon Aug 12, 2024
this may depend on portable persistent cache which is another feature
stale commentedon Oct 11, 2024
This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
slorber commentedon Nov 19, 2024
Hi @jerrykingxyz , just saw your RFCs here:
I'm not totally able to understand the design, but just wanted to make sure that you consider supporting these f:
Example pseudo-code from Docusaurus building localized documentation, but I guess the same could be similar for Rspress:
We are compiling 3 localized apps in 2 variants (client/server). The localized apps share a lot of code in common, apart the content itself (MDX).
My ideal expectations for a greatly optimized caching system (for both memory/persistent)
Does this make sense?
What didn't work well for us in how Webpack designed its persistent cache is that when running sequential compilations, the latest compilation was somehow overriding all the previous ones, instead of having a way to "append" to the persistent cache.
For example:
jerrykingxyz commentedon Nov 20, 2024
@slorber The current design of rspack persistent cache does not support shared cache with different configurations. For your needs, the configuration and conclusions on rspack persistent cache are consistent with those of webpack.
stale commentedon Jan 19, 2025
This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
chenjiahan commentedon Mar 17, 2025
See https://rspack.dev/config/experiments#persistent-cache