Skip to content

Update from task 64bbd437-ed41-4a4b-8ab0-1d5f9b65859a#1

Open
open-coder-ctrl wants to merge 1 commit into
mainfrom
性能优化技巧-5859a

Hidden character warning

The head ref may contain hidden characters: "\u6027\u80fd\u4f18\u5316\u6280\u5de7-5859a"
Open

Update from task 64bbd437-ed41-4a4b-8ab0-1d5f9b65859a#1
open-coder-ctrl wants to merge 1 commit into
mainfrom
性能优化技巧-5859a

Conversation

@open-coder-ctrl

Copy link
Copy Markdown
Owner

This PR was created by qwen-chat coder for task 64bbd437-ed41-4a4b-8ab0-1d5f9b65859a.

…via client caching and connection pooling, and improve proxy check concurrency in main.go using buffered channels for better performance under high load.

- checker.go: Implement HTTP client pooling with thread-safe caching mechanism to reuse connections across proxy checks, add connection pooling parameters (MaxIdleConns, MaxIdleConnsPerHost, IdleConnTimeout) to transport configuration
- main.go: Refactor concurrent proxy checking to use buffered result channel instead of blocking mutex operations during check execution, improving throughput when handling many proxies
- .gitignore: Update ignore patterns to remove development-specific entries and standardize Go project exclusions
- go.mod/go.sum: Downgrade dependencies to more stable versions (prometheus/client_golang v1.17.0, golang.org/x/net v0.17.0) for better compatibility
- main.go: Add detailed comments explaining the concurrent check implementation and metric update synchronization

The changes significantly improve performance by enabling HTTP connection reuse between proxy checks and optimizing the concurrent execution model for better resource utilization.
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.

2 participants