next.js
c450cd83 - [turbopack] Remove a vec clone from `primary_chunkable_referenced_modules` (#81206)

Commit
178 days ago
[turbopack] Remove a vec clone from `primary_chunkable_referenced_modules` (#81206) Remove a vec clone when resolving module primary references. Since it is stored in a turbotask we can just pass around a ReadRef to the Vec. By avoiding the copy we make the `ModulesWithRefData` type a little smaller and should speed up the loop, the cost is some additional indirection when iterating, however all callers only iterate once so this ends up as a win in all cases.
Author
Parents
Loading