New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Communication between VS -> MSBuild is pushing 6% (100MB) of allocations onto the LOH #3953
Comments
@benvillalobos can you check current relevance of this after the latest project system changes? |
Maybe the stream passed to BinaryWriter could be some custom (subclass of?) MemoryStream that allocated in sizes that are more friendly to the LOH (?) |
Labeling with size:1 as the cost of the initial investigation. Will open a follow-up issue if more work is identified. |
Code inspection:
We should be much better off now. Let's measure. |
We're attempting to quadruple the number of projects that the project system can open, while at same reducing solution load time. Reducing GC time is an important part of that.
In one trace where we are opening 780 projects, I'm seeing ~50 MB pushed on the large object heap (LOH) during the communication between VS and MSBuild.
It would reduce the amount of data we pushed on the LOH (and forced Gen2 collection) if we chunked this data up into arrays that were less than 85K.
GC Rollup By Generation
The text was updated successfully, but these errors were encountered: