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

Efficient copies of bytes #342

Merged
merged 2 commits into from
Apr 22, 2024
Merged

Conversation

NoamK-CR
Copy link
Contributor

This aims to solve both #323 and #328 by supplying efficient methods to copy Python bytes into Go []byte slices and vice versa.

One question I have is whether the Slice_byte Python constructor should check if the first argument is of type bytes, and if so use the optimized method?

@rcoreilly
Copy link
Member

this looks interesting -- but will take more time than I have avail right now. also can you fix the build after I update with other PRs?

@NoamK-CR
Copy link
Contributor Author

Sure, I'll fix the build now and rebase.

@rcoreilly rcoreilly merged commit be58ca3 into go-python:master Apr 22, 2024
2 of 3 checks passed
@rcoreilly
Copy link
Member

Thanks and sorry for the delay in merging!

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.

2 participants