Alanxtl opened a new issue, #3406: URL: https://github.com/apache/dubbo-go/issues/3406
## Background PR #3404 optimizes `common.URL.String()`. There are still a few URL key-building helpers that use formatted string construction or small buffers for fixed string layouts. This issue is intended to avoid overlapping with #3404 and focus on the remaining key construction helpers. ## Scope Consider replacing fixed-format string construction with `strings.Builder` or direct concatenation where it is safe and readable. Relevant code: - `common/url.go` - `(*URL).Key()` - `(*URL).GetCacheInvokerMapKey()` - `ServiceKey()` ## Acceptance Criteria - Output is byte-for-byte identical to the existing implementation. - Existing URL tests pass. - Add or update focused benchmarks for `Key`, `GetCacheInvokerMapKey`, and `ServiceKey` if they are missing. - `go test ./common` passes. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
