Refactor for performance and add documentation#1
Merged
Conversation
This commit completely refactors the CheckProxy application to be more performant, efficient, and user-friendly. - Replaced synchronous network calls with asynchronous operations throughout the application. - Implemented concurrent proxy checking using `Task.WhenAll` and a `SemaphoreSlim` to control parallelism, significantly speeding up batch processing from a file. - Replaced basic argument parsing with the `System.CommandLine` library, providing a robust CLI with support for single proxy checks, file inputs (`--file`), and configurable timeouts (`--timeout`). - Consolidated six redundant proxy check methods into three focused and reliable checks. - Removed the unused `RestSharp` dependency in favor of the modern `HttpClient`. - Added comprehensive XML documentation to the C# code for better maintainability. - Overhauled the `README.md` to provide accurate and detailed information, including build instructions and up-to-date usage examples.
Owner
Author
|
a |
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.
This commit completely refactors the CheckProxy application to be more performant, efficient, and user-friendly.
Task.WhenAlland aSemaphoreSlimto control parallelism, significantly speeding up batch processing from a file.System.CommandLinelibrary, providing a robust CLI with support for single proxy checks, file inputs (--file), and configurable timeouts (--timeout).RestSharpdependency in favor of the modernHttpClient.README.mdto provide accurate and detailed information, including build instructions and up-to-date usage examples.