You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the initial version of project-impact-graph.yaml, we use glob pattern to represent a project, so when using the path to query the project, we need to use the glob library for pattern matching.
During performance testing, we found that using glob for path matching has a great loss on performance.
We used two glob libraries, minimatch and micromatch, for testing. As can be seen from the table below, when the number of paths reaches 1000, it takes more than 20 seconds.
Plan B
We try to use folder strings to represent projects (the same way used by rush.json), so that we can use string matching to determine which project the path belongs to. This method can greatly improve performance.
Plan A
In the initial version of
project-impact-graph.yaml
, we use glob pattern to represent a project, so when using the path to query the project, we need to use the glob library for pattern matching.During performance testing, we found that using glob for path matching has a great loss on performance.
We used two glob libraries, minimatch and micromatch, for testing. As can be seen from the table below, when the number of paths reaches 1000, it takes more than 20 seconds.
Plan B
We try to use folder strings to represent projects (the same way used by rush.json), so that we can use string matching to determine which project the path belongs to. This method can greatly improve performance.
Performance Data
The text was updated successfully, but these errors were encountered: