Commit bc14bb2
Drop output_dependent on immutable task completion
Immutable tasks never change their output, so their output_dependent set
is dead weight after completion — no new readers are added (guarded by
!task.immutable()) and no invalidation will ever traverse it. Extend the
macro's cleanup_after_execution to support drop_on_completion_if_immutable
on inline collection fields and apply it to output_dependent.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent db0fdc3 commit bc14bb2
File tree
2 files changed
+29
-10
lines changed- turbopack/crates
- turbo-tasks-backend/src/backend
- turbo-tasks-macros/src/derive
2 files changed
+29
-10
lines changedLines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
78 | 84 | | |
79 | 85 | | |
80 | 86 | | |
| |||
Lines changed: 22 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2442 | 2442 | | |
2443 | 2443 | | |
2444 | 2444 | | |
2445 | | - | |
2446 | | - | |
| 2445 | + | |
| 2446 | + | |
2447 | 2447 | | |
2448 | 2448 | | |
2449 | 2449 | | |
2450 | 2450 | | |
2451 | | - | |
| 2451 | + | |
| 2452 | + | |
| 2453 | + | |
2452 | 2454 | | |
2453 | 2455 | | |
2454 | | - | |
| 2456 | + | |
2455 | 2457 | | |
2456 | 2458 | | |
2457 | 2459 | | |
2458 | 2460 | | |
2459 | 2461 | | |
2460 | 2462 | | |
2461 | | - | |
2462 | | - | |
2463 | | - | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
2464 | 2477 | | |
2465 | 2478 | | |
2466 | 2479 | | |
| |||
2551 | 2564 | | |
2552 | 2565 | | |
2553 | 2566 | | |
2554 | | - | |
2555 | | - | |
| 2567 | + | |
| 2568 | + | |
2556 | 2569 | | |
2557 | 2570 | | |
2558 | 2571 | | |
| |||
0 commit comments