perf(turbo-tasks): Add a synchronous try_sidecast method to ResolvedVc (#74844)
If we have a `ResolvedVc`, we don't actually need to go through `Vc`'s much-less-efficient codepath (which reads cells, even if the `Vc` is resolved) in order to perform a sidecast. This has the benefit of removing the chance of sidecast returning an error while reading and makes the function synchronous. This does not update callsites, that can come later. We can do similar optimizations with `try_downcast` in a future PR. I don't think this is an actual hot-path in our code, but it unblocks some synchronous graph traversal stuff that @wbinnssmith is working on.
Showing
Please
register
or
sign in
to comment