-
-
Notifications
You must be signed in to change notification settings - Fork 362
perf(GetUniqueName): add cache for assembly GetUniqueName method #6996
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
Conversation
|
Thanks for your PR, @kimdiego2098. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
Reviewer's GuideThis PR introduces caching for the GetUniqueName logic by moving its implementation into CacheManager and updating AssemblyExtensions to delegate to the cached method. Sequence diagram for GetUniqueName method with cachingsequenceDiagram
participant Caller
participant AssemblyExtensions
participant CacheManager
participant MemoryCache
Caller->>AssemblyExtensions: GetUniqueName(assembly)
AssemblyExtensions->>CacheManager: GetUniqueName(assembly)
CacheManager->>MemoryCache: GetOrCreate(assembly, ...)
MemoryCache-->>CacheManager: unique name
CacheManager-->>AssemblyExtensions: unique name
AssemblyExtensions-->>Caller: unique name
Class diagram for updated GetUniqueName caching logicclassDiagram
class CacheManager {
+static string GetUniqueName(Assembly assembly)
}
class AssemblyExtensions {
+static string GetUniqueName(Assembly assembly)
}
AssemblyExtensions --> CacheManager: delegates GetUniqueName
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6996 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 741 741
Lines 32365 32371 +6
Branches 4481 4481
=========================================
+ Hits 32365 32371 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Issues
fixes #6997
feat: GetUniqueName方法添加缓存
Summary by Sourcery
Introduce caching for the GetUniqueName method to avoid repeated computation of assembly names and update the extension method to use the cache.
New Features:
Enhancements: