-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Schematics - visit function performance #20079
Copy link
Copy link
Closed as not planned
Labels
area: @angular-devkit/schematicsfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authorsLabel to add when the not a sufficient number of votes or comments from unique authorsseverity4: memory/performance
Milestone
Metadata
Metadata
Assignees
Labels
area: @angular-devkit/schematicsfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authorsLabel to add when the not a sufficient number of votes or comments from unique authorsseverity4: memory/performance
Type
Fields
Give feedbackNo fields configured for Enhancement.
🚀 Feature request
Command (mark with an
x)Description
The tree and directory in schematics allow you to
visiteach file in that tree/dir, and the handler function runs on each file in series which can be time consuming.Describe the solution you'd like
Implement a concurrent version of visit that would allow multiple files to be processed at the same time. This solution can be done in addition to
visitviavisitConcurrentorvisitAsync.The number of concurrent handlers would be handled via an argument and therefore controlled by the consumer.
Also this would likely be handled via RxJS so an observable should be returned by the new
visit____function.Describe alternatives you've considered
Have you considered any alternative solutions or workarounds?