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

Some small improvements #11564

Merged
merged 1 commit into from
Aug 11, 2021
Merged

Some small improvements #11564

merged 1 commit into from
Aug 11, 2021

Conversation

skyguard1
Copy link
Contributor

Motivation:
Some small improvements

Modification:

1.The minimum or the maximum of two numbers can be calculated by means of Math.max() or Math.min() instead of doing it manually.
2.Simplify the judgment of size
3.When the collection is initialized, specify the initial value of the collection.

Result:
The code is more efficient than the original implementation

@NiteshKant
Copy link
Member

Thanks a lot @skyguard1

@NiteshKant NiteshKant added this to the 4.1.67.Final milestone Aug 9, 2021
@skyguard1
Copy link
Contributor Author

@NiteshKant It is my pleasure

@skyguard1
Copy link
Contributor Author

@NiteshKant Could you please re-run ci build? Thanks

@chrisvest
Copy link
Contributor

@skyguard1 Try rebasing.

Signed-off-by: xingrufei <xingrufei@sogou-inc.com>
@chrisvest chrisvest merged commit 3c27e00 into netty:4.1 Aug 11, 2021
chrisvest pushed a commit that referenced this pull request Aug 11, 2021
Signed-off-by: xingrufei <xingrufei@sogou-inc.com>
laosijikaichele pushed a commit to laosijikaichele/netty that referenced this pull request Dec 16, 2021
Signed-off-by: xingrufei <xingrufei@sogou-inc.com>
laosijikaichele pushed a commit to laosijikaichele/netty that referenced this pull request Dec 16, 2021
Signed-off-by: xingrufei <xingrufei@sogou-inc.com>
raidyue pushed a commit to raidyue/netty that referenced this pull request Jul 8, 2022
Signed-off-by: xingrufei <xingrufei@sogou-inc.com>
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.

None yet

3 participants