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

performance refactoring - use native call for file existence, use parallel async, refactor for maintainability #214

Merged
merged 5 commits into from
Jul 29, 2024

Conversation

DineshSolanki
Copy link
Owner

No description provided.

…ng the icon creation faster and the code more maintainable

Refactored the ` MakeIco ` method to support async execution and parallelism. Introduced `IconProperties` to encapsulate icon data and updated `BuildFolderIco` to use the new class. Adjusted icon overlay handling to improve code maintainability and performance.
Refactored occurrences of File.Exists to use the new FileUtils.FileExists method. This change centralizes the file existence check, making the codebase more maintainable and consistent as we are testing out p/invoke method to check existence for performance
Converted methods to async to improve performance by allowing tasks to run concurrently. Updated `RefreshIconCache` and `DeleteIconsFromSubfolders` to use asynchronous counterparts.
Refactor to use predefined window render size. The render size is now a static readonly property, ensuring it's not being created for each instance.
@DineshSolanki DineshSolanki self-assigned this Jul 29, 2024
Copy link

@DineshSolanki DineshSolanki merged commit 68a3846 into master Jul 29, 2024
6 checks passed
@DineshSolanki DineshSolanki deleted the refactor branch July 29, 2024 06:35
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.

1 participant