ProjectServices should dedup strings coming from MSBuild
See original GitHub issueLooking at memory dumps of large solutions, one source of duplicate strings is the ProjectServices’s DesignTimeBuildResultCache
object. @drewnoakes did a bunch of work to dedup strings when saving to and loading from the cache, but this situation is where the cache was empty and we ran a design-time build. We should consider whether we could dedup strings in this case at least within an individual cache (since there are likely going to be overlaps) and ideally across all of the strings in the cache?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
RemoveDuplicates Task - MSBuild
Learn how MSBuild uses the RemoveDuplicates task to remove duplicate items from the specified item collection.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Actually, I realized this was a mistake on my part – because the solution duplicates projects, it was creating false duplicates.
De-duping across projects may be helpful in some cases. We should get metrics on real-world solutions rather than synthesized ones.