-
Notifications
You must be signed in to change notification settings - Fork 932
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
Optimize the memory usage #916
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #916 +/- ##
===========================================
- Coverage 59.85% 59.82% -0.04%
===========================================
Files 260 260
Lines 12854 12858 +4
===========================================
- Hits 7694 7692 -2
- Misses 4199 4202 +3
- Partials 961 964 +3
Continue to review full report at Codecov.
|
common/url.go
Outdated
@@ -427,6 +427,17 @@ func (c *URL) SetParam(key string, value string) { | |||
c.params.Set(key, value) | |||
} | |||
|
|||
// SetParams will replace the URL.params | |||
// SetParams will put all key-value pair into url. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment and function not match?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
LGTM |
* #901 Optimize the memory usage.
What this PR does:
Optimize some memory usage issue , please refer to #901
In this way, we can remove some lock for it is cloned in MergeURL
Which issue(s) this PR fixes:
Fixes #901
Special notes for your reviewer:
Does this PR introduce a user-facing change?: