Filesystem Cache #802
Replies: 4 comments 6 replies
-
Thanks for caring about it. Filesystem Cache is definitely something we are going to think about. However, it's a little bit early to say how we gonna do it. I mean we have built abstraction of file system, which might be a good start. But we don't have a cache design both for memory and file system so far. |
Beta Was this translation helpful? Give feedback.
-
Hi @hyf0, In the implementation of I like this method, and think it can also be a good start for fs cache as it's easy to reason about and non-invasive to the existing workflow. For rolldown, if we are taking this approach, I think it would mean caching and reusing What do you think of this approach? Would you be interested in a PoC implementation? I've already had some success on (de)serializing oxc ast nodes and semantic analysis results. |
Beta Was this translation helpful? Give feedback.
-
Deserializable oxc types: oxc-project/oxc#3079 |
Beta Was this translation helpful? Give feedback.
-
@hyf0 Just wanted to check how much of a gain you think a persistent cache for ASTs would be. For the sake of argument, let's say the following is possible:
If this were possible, would it be a large gain for Rolldown? Or is parsing/semantic/transform fast enough anyway that disk caching isn't particularly worthwhile? I'm asking because I'm thinking about a custom allocator for Oxc (and accompanying custom |
Beta Was this translation helpful? Give feedback.
-
It's a much-requested feature in rollup: rollup/rollup#2182. Although rollup only supports in-memory cache (
--watch
).For rolldown, I think filesystem cache is more important than in-memory cache since it's meant to be a production bundler for vite.
I have some primitive ideas to try but I want to ask if this is interested before digging in.
Beta Was this translation helpful? Give feedback.
All reactions