perf: optimize resource allocation and improve thread safety#195
Open
Y-ASLant wants to merge 1 commit into
Open
perf: optimize resource allocation and improve thread safety#195Y-ASLant wants to merge 1 commit into
Y-ASLant wants to merge 1 commit into
Conversation
- Cache Languages list in Localizer to avoid repeated initialization - Replace GCHandle.Alloc with Marshal.AllocHGlobal in ComputerService to reduce GC pressure and heap fragmentation - Cache Font and StringFormat in NotificationService for icon rendering - Cache Brushes collection in MainViewModel and fix process disposal leak - Replace BitArray with Brian Kernighan bit counting algorithm - Add Interlocked guard for concurrent optimization in WinService - Fix lock granularity in MainViewModel.Optimize for better throughput - Simplify ServiceController usage in WinService - Remove redundant Settings.Save() call in Settings finalizer Closes IgorMundstein#168 Closes IgorMundstein#181 Closes IgorMundstein#183 Closes IgorMundstein#190 Closes IgorMundstein#192
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #168
Closes #181
Closes #183
Closes #190
Closes #192
Summary
Please provide a brief description of the changes made in this pull request.
Related Issue
If applicable, link to the issue this PR addresses:
Fixes #<issue_number>Changes
Checklist
Additional Notes
Include any additional information or context for reviewers.