-
-
Notifications
You must be signed in to change notification settings - Fork 3k
[mypyc] Add bytes concat op #10926
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
[mypyc] Add bytes concat op #10926
Conversation
Also, can you post a microbenchmark result with this change? |
Master:
This PR:
It seems that we can hardly benefit from this op. |
I think that it's worth trying to implement the |
|
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.
Looks good, just a few style nits. Thanks for carefully testing interactions between bytes
and bytearray
.
Description
Related issue: mypyc/mypyc#880
Use
PyByteArray_Concat
andPyBytes_Concat
in a c helper function for bytes concat.Test Plan
Add several run tests for
This PR speeds up the
bytes_concat
microbenchmark from 1.67x to 2.01x