next.js
turbo-tasks: Reduce allocations on cache hits
#92756
Merged

turbo-tasks: Reduce allocations on cache hits #92756

lukesandberg merged 21 commits into canary from fewer_boxes
lukesandberg
nextjs-bot nextjs-bot added created-by: Turbopack team
nextjs-bot nextjs-bot added Turbopack
codspeed
nextjs-bot
nextjs-bot
lukesandberg
lukesandberg commented on 2026-04-14
lukesandberg
lukesandberg commented on 2026-04-14
lukesandberg
lukesandberg commented on 2026-04-14
lukesandberg
lukesandberg commented on 2026-04-14
lukesandberg
lukesandberg commented on 2026-04-16
lukesandberg
lukesandberg commented on 2026-04-16
lukesandberg
lukesandberg commented on 2026-04-16
lukesandberg
lukesandberg commented on 2026-04-16
lukesandberg
lukesandberg commented on 2026-04-16
lukesandberg
lukesandberg commented on 2026-04-16
lukesandberg lukesandberg requested a review from mmastrac mmastrac 232 days ago
lukesandberg lukesandberg marked this pull request as ready for review 232 days ago
lukesandberg
lukesandberg commented on 2026-04-16
lukesandberg
lukesandberg commented on 2026-04-16
lukesandberg
lukesandberg commented on 2026-04-16
lukesandberg
lukesandberg commented on 2026-04-16
lukesandberg
lukesandberg commented on 2026-04-16
lukesandberg
lukesandberg commented on 2026-04-16
lukesandberg
lukesandberg commented on 2026-04-16
lukesandberg
lukesandberg commented on 2026-04-16
lukesandberg
lukesandberg commented on 2026-04-16
lukesandberg
lukesandberg commented on 2026-04-16
lukesandberg
lukesandberg commented on 2026-04-16
lukesandberg
mmastrac
mmastrac commented on 2026-04-16
lukesandberg
lukesandberg commented on 2026-04-16
lukesandberg
lukesandberg commented on 2026-04-16
lukesandberg Reduce allocations on turbo-tasks cache hits
b5dce383
lukesandberg Fix CI: clippy lints and testing backend unreachable
02896c4a
lukesandberg Address review: remove stale comments, dead code, and extra Arc clone
cc4c4255
lukesandberg Extend cache-hit optimization to method calls with this pointer
78347073
lukesandberg Replace callsite branching with StackArg deferred boxing
488dedab
lukesandberg Address review comments on StackArg PR
9a5b1917
lukesandberg Single-lookup cache path with pre-computed hash
03d24cb6
lukesandberg Restore read-lock-first cache lookup to avoid holding dashmap lock du…
783ecdd3
lukesandberg Remove dead code: arc_or_owned module, unused dash_map_raw_entry methods
1191af21
lukesandberg Rename StackArg -> StackMagicAny, filter_owned accepts &mut dyn Stack…
9e2dd0a7
lukesandberg Merge get_or_create_{persistent,transient}_task into single get_or_cr…
c52e2b5d
lukesandberg Fix clippy collapsible_if in get_or_create_task
b432ca5f
lukesandberg Address review comments: restore comments, remove StackMagicAny doc, …
5231acf0
lukesandberg Return existing Arc<CachedTaskType> from task_by_type
f775e73f
lukesandberg Add unit tests for CachedTaskType::hash_from_components and eq_compon…
e7de2884
lukesandberg Share DashMap shard index across read and write lookups
87491f15
lukesandberg Mark StackMagicAnySlot as repr(transparent)
af339f54
lukesandberg Share DashMap shard reference via raw-api feature
7cd2fe98
lukesandberg Defer boxing until full cache miss by decomposing task_by_type
3cfbb1e4
lukesandberg Restore lost comments and fix stale ones from refactoring
51655583
lukesandberg REMOVE ONE MORE ALLOCATION
59875f45
lukesandberg lukesandberg force pushed from 8b695771 to 59875f45 231 days ago
lukesandberg
lukesandberg lukesandberg requested a review from mmastrac mmastrac 231 days ago
mmastrac
mmastrac approved these changes on 2026-04-16
lukesandberg
mmastrac
lukesandberg lukesandberg merged 31a1b635 into canary 231 days ago
lukesandberg lukesandberg deleted the fewer_boxes branch 231 days ago
github-actions github-actions added locked
github-actions github-actions locked as resolved and limited conversation to collaborators 217 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone