-
Notifications
You must be signed in to change notification settings - Fork 832
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
avoid flush repeatedly when has finished flushing #839
Conversation
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.
Apart from minor formatting, this PR looks good to me.
@@ -58,8 +58,9 @@ public void flush () throws KryoException { | |||
} catch (IOException ex) { | |||
throw new KryoException(ex); | |||
} | |||
}else{ |
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.
Please apply project formatting to your changes. There should be whitespace around the else
.
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.
thank you , i have formtted
Thanks @jackjoesh! I think this change makes sense and I will apply it. |
thank you for checking |
Thanks again @jackjoesh! |
* avoid repeat flush when position finish * Formatting Co-authored-by: jerry.l <jerry.l@binance.com> Co-authored-by: Thomas Heigl <thomas.heigl@gmail.com>
…ftware#839)" This reverts commit d693aa5.
* avoid flush repeatedly when has finished flushing (#839) * avoid repeat flush when position finish * Formatting Co-authored-by: jerry.l <jerry.l@binance.com> Co-authored-by: Thomas Heigl <thomas.heigl@gmail.com> * Revert "avoid flush repeatedly when has finished flushing (#839)" This reverts commit d693aa5. * avoid flush repeatedly when has finished flushing --------- Co-authored-by: jackjoesh <jackjoesh@sina.com> Co-authored-by: jerry.l <jerry.l@binance.com> Co-authored-by: Thomas Heigl <thomas.heigl@gmail.com>
Modify content: avoid flush repeatedly when has finished flushing.
After my testing ,this modification can save cpu usage in high concurrency service.