Unverified Commit d753714b authored by vercel-fleet-prod[bot]'s avatar vercel-fleet-prod[bot] Committed by GitHub

Turbopack: keep parse results resident during eviction

Co-authored-by: 's avatarLuke Sandberg <210140+lukesandberg@users.noreply.github.com>
parent 5f2ef546
...@@ -144,7 +144,15 @@ impl Visit for IdentCollector { ...@@ -144,7 +144,15 @@ impl Visit for IdentCollector {
} }
} }
#[turbo_tasks::value(shared, serialization = "skip", eq = "manual", cell = "new")] /// Not serialized, so an evicted parse result has to be recomputed by re-parsing the source.
/// Tagged `evict = "last"` so eviction prefers evicting cheaper cells first.
#[turbo_tasks::value(
shared,
serialization = "skip",
evict = "last",
eq = "manual",
cell = "new"
)]
#[allow(clippy::large_enum_variant)] #[allow(clippy::large_enum_variant)]
pub enum ParseResult { pub enum ParseResult {
Ok { Ok {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment