-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Using icord to avoid dynamic allocation and speed up write. #2237
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.
Awesome work!
You are the man!
BTW. Do we need to make the buffer to be thread local? |
Why need it? |
To avoid stack overflow under high write load. Of course, it is not big issue currently. |
I don't think this will happen, the ICord object will release when write over and it only 1kb in stack. |
Yes, normally it will never happen. |
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.
Good job
Codecov Report
@@ Coverage Diff @@
## master #2237 +/- ##
==========================================
- Coverage 86.54% 86.46% -0.09%
==========================================
Files 644 646 +2
Lines 63643 64249 +606
==========================================
+ Hits 55079 55550 +471
- Misses 8564 8699 +135
Continue to review full report at Codecov.
|
…nc#2237) Co-authored-by: dangleptr <37216992+dangleptr@users.noreply.github.com>
…nc#2237) Co-authored-by: dangleptr <37216992+dangleptr@users.noreply.github.com>
…nc#2237) Co-authored-by: dangleptr <37216992+dangleptr@users.noreply.github.com>
What changes were proposed in this pull request?
Why are the changes needed?
Will break the compatibility? How if so?
NO
Does this PR introduce any user-facing change?
NO
How was this patch tested?
Checklist