-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Based on some dump files collected by Svet, we noticed that GlobInfo we gathered from msbuild is bigger than expected, and in some traces, it uses 1.2% of the total heap.
The majority of those objects are RegEx objects. CPS gathers GlobInfo from every projects, and uses it to watch directory changes. Because the majority of the .Net Core project uses exactly the same globbing pattern, we hope those RegEx can be reused (or maybe a more efficient globbing matching logic can be used to replace RegEx), and we can have a much reduced memory usage for that structure.