Do you want to request a feature or report a bug?
What is the current behavior?
Installing large, complex projects (10k total transitive and non-transitive dependencies) spend most of their time in getFlatHoistedTree:
I’m working on a generic reproducible case, but to summarize, I have 542 workspaces in one yarn project, and generating the lockfile is pretty much stuck in the getFlatHoistedTree / package-hoister seed.
I think the
queue contains around 12 million objects, and I think repeatedly iterating and copying the objects is causing the degradation.
Is there a way to optimize this?
Node Version: 9+