gopy icon indicating copy to clipboard operation
gopy copied to clipboard

Efficient copies of bytes

Open NoamK-CR opened this issue 2 years ago • 2 comments

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?

NoamK-CR avatar Nov 19 '23 12:11 NoamK-CR

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?

rcoreilly avatar Dec 12 '23 19:12 rcoreilly

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

NoamK-CR avatar Dec 13 '23 09:12 NoamK-CR

Thanks and sorry for the delay in merging!

rcoreilly avatar Apr 22 '24 22:04 rcoreilly