Skip to content

Generate consistent metadata view assembly names#333

Merged
AArnott merged 1 commit into
microsoft:mainfrom
davkean:dev/davkean/ConsistentName
Aug 3, 2022
Merged

Generate consistent metadata view assembly names#333
AArnott merged 1 commit into
microsoft:mainfrom
davkean:dev/davkean/ConsistentName

Conversation

@davkean
Copy link
Copy Markdown
Member

@davkean davkean commented Jul 1, 2022

Investigating diffs in assembly loads and JIT time is difficult between builds of VS because the proxy assembly that contains the metadata views gets a new name every launch.

Consistently generate the names - so that the as long as the same assemblies are involved, the same name is generated.

This is an identical change I've made to ServiceBroker RPC proxies.

(I've not actually tested this - as I cannot get MEF building at the moment on my box)

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jul 1, 2022

Codecov Report

Merging #333 (6986215) into main (296a635) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #333      +/-   ##
==========================================
+ Coverage   76.14%   76.17%   +0.02%     
==========================================
  Files         110      110              
  Lines        7185     7194       +9     
==========================================
+ Hits         5471     5480       +9     
  Misses       1714     1714              
Impacted Files Coverage Δ
...Composition/Configuration/MetadataViewGenerator.cs 96.09% <100.00%> (+0.29%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@davkean davkean force-pushed the dev/davkean/ConsistentName branch 2 times, most recently from d7046ed to 4500138 Compare July 1, 2022 03:15
Copy link
Copy Markdown
Member

@AArnott AArnott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The overall change looks good. I've left a couple ideas for improvement.

Comment thread src/Microsoft.VisualStudio.Composition/Configuration/MetadataViewGenerator.cs Outdated
Comment thread src/Microsoft.VisualStudio.Composition/Configuration/MetadataViewGenerator.cs Outdated
Investigating diffs in assembly loads and JIT time is difficult between builds of VS because the proxy assembly that contains the metadata views gets a new name every launch.

Consistently generate the names - so that the as long as the same assemblies are involved, the same name is generated.
@davkean davkean force-pushed the dev/davkean/ConsistentName branch from 4500138 to 6986215 Compare August 3, 2022 01:43
@davkean
Copy link
Copy Markdown
Member Author

davkean commented Aug 3, 2022

@AArnott Can I have another review on this?

@AArnott AArnott added this to the v17.4 milestone Aug 3, 2022
@AArnott AArnott merged commit 437dc50 into microsoft:main Aug 3, 2022
@davkean
Copy link
Copy Markdown
Member Author

davkean commented Aug 3, 2022

@AArnott thanks!

@davkean davkean deleted the dev/davkean/ConsistentName branch August 3, 2022 05:17
@AArnott
Copy link
Copy Markdown
Member

AArnott commented Aug 3, 2022

This should show up in VS on Thursday (since it missed the cut-off for tonight's build and insertion).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants