Turbopack: Use Arc<PathMap> and Box<Path> to make InvalidatorMap slightly more efficient (#95987)
Addresses https://github.com/vercel/next.js/pull/95951/changes#r3617631291 - We often already have an `Arc<PathBuf>` here. - The data stored in the queue is temporary, so the slight extra size of `Arc<PathBuf>` is fine, and saving the clone is nice. - The other references to the `Arc<PathBuf>` are not long-lived, so convert it into a `Box<Path>` once it goes into the locked map.
Showing
Please
register
or
sign in
to comment