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
chore(turbo-tasks): Remove support for local_cells (a specific mode of local tasks we ended up not using) (#75672)
Local cells would allow us to avoid allocating real cells for data
passed to local task functions.
Unfortunately, in practice, we manually resolve most arguments passed to
local task functions, which would defeat this optimization.
I was holding onto this in the hopes that we might end up using it, but
that seems fleeting:
- We could get similar benefits by scanning for unreferenced cells at
the end of function execution using `TraceRawVcs` at the cost of a bit
of execution time. This would work even on `Vc`s that were resolved.
- For ergonomics reasons, we want to eventually rename `ResolvedVc` to
`Vc` (and `Vc` to something like `UnresolvedVc`), which will probably
lead to us resolving even more stuff, breaking this potential
optimization even more.
- Cache eviction may do a good enough job of removing cells, the bigger
enemy are the harder-to-evict tasks, which our current version of local
tasks does do a good job of reducing.
Meanwhile, it makes the code harder to follow, and could cause issues if
this codepath somehow got activated.
0 commit comments