[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.
Showing
Please
register
or
sign in
to comment