xdelta3-python icon indicating copy to clipboard operation
xdelta3-python copied to clipboard

Support memoryview ranges in decode and encode

Open i30817 opened this issue 7 years ago • 1 comments

I know that some python libraries with native code have added support for this (i needs some kind of explicit reference type).

Reference: https://github.com/indygreg/python-zstandard/issues/26

This can save a lot of memory depending on your buffers size. Feel free to close this if the bytes passed to the encoding and decoding functions need to operate in place on the arrays.

i30817 avatar Jan 22 '18 11:01 i30817

Sorry for the slow response.

I'm no expert but I believe the underlying xdelta3 c library can operate on files and therefore might be able to work with memoryviews.

Happy to discuss and accept pull requests, but I'm not actively working on this library myself right now so won't be able to implement it in the near future.

samuelcolvin avatar Feb 09 '18 10:02 samuelcolvin