Skip to content
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

Use a tuned ConcurrentDictionary in the default caching implementation for the COM source generator #84335

Merged
merged 2 commits into from Apr 7, 2023

Conversation

jkoritzinsky
Copy link
Member

Use a ConcurrentDictionary to ensure we have at least a simple decently performant thread-safe cache.

Based on experience with CsWinRT, we'll try to tune this a little bit as we don't expect many concurrent writes to the cache.

@jkoritzinsky jkoritzinsky added area-System.Runtime.InteropServices source-generator Indicates an issue with a source generator feature labels Apr 5, 2023
@jkoritzinsky jkoritzinsky added this to the 8.0.0 milestone Apr 5, 2023
@ghost ghost assigned jkoritzinsky Apr 5, 2023
@ghost
Copy link

ghost commented Apr 5, 2023

Tagging subscribers to this area: @dotnet/interop-contrib
See info in area-owners.md if you want to be subscribed.

Issue Details

Use a ConcurrentDictionary to ensure we have at least a simple decently performant thread-safe cache.

Based on experience with CsWinRT, we'll try to tune this a little bit as we don't expect many concurrent writes to the cache.

Author: jkoritzinsky
Assignees: -
Labels:

area-System.Runtime.InteropServices, source-generator

Milestone: 8.0.0

@jkoritzinsky
Copy link
Member Author

All of the failures are known failures.

@jkoritzinsky jkoritzinsky merged commit 092f752 into dotnet:main Apr 7, 2023
106 of 113 checks passed
@jkoritzinsky jkoritzinsky deleted the simple-concurrent-caching branch April 7, 2023 18:11
@ghost ghost locked as resolved and limited conversation to collaborators May 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Runtime.InteropServices source-generator Indicates an issue with a source generator feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants