next.js
e830e85f - [turbopack] Reorganize the fields in LocalTaskType to avoid an allocation (#80738)

Commit
190 days ago
[turbopack] Reorganize the fields in LocalTaskType to avoid an allocation (#80738) ### What? Create a new `struct` `LocalTaskSpec` that holds a `LocalTaskType` as an enum. This allows us to share the common fields and push the formatting routines down to the LocalTaskType. ### Why? This allows us to avoid an `Arc::new` call when launching tasks since the `LocalTaskType` enum now becomes copyable.
Author
Parents
Loading