-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix equal checks for cells and output #8721
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ pub trait GenerateSourceMap { | |
/// The distinction between the source map spec's [sourcemap::Index] and our | ||
/// [SourceMap::Sectioned] is whether the sections are represented with Vcs | ||
/// pointers. | ||
#[turbo_tasks::value(shared)] | ||
#[turbo_tasks::value(shared, cell = "new")] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How do we determine which cells should always be overridden? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When you don't want cells to ever match using equality? Which I imagine should be never unless you've got another bug (e.g. inconsistent cell creation order?). I agree this seems weird and like we're masking bigger problems. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
But in general you want to check equality for early stop bubbling invaliations... |
||
pub enum SourceMap { | ||
/// A decoded source map contains no Vcs. | ||
Decoded(#[turbo_tasks(trace_ignore)] InnerSourceMap), | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can early return when returning the same value again.
Previously this notified all dependent tasks, which is unnecessary.