Skip to content
This repository has been archived by the owner on Apr 23, 2022. It is now read-only.

Support memoryview ranges in decode and encode #7

Open
i30817 opened this issue Jan 22, 2018 · 1 comment
Open

Support memoryview ranges in decode and encode #7

i30817 opened this issue Jan 22, 2018 · 1 comment

Comments

@i30817
Copy link

i30817 commented Jan 22, 2018

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

Reference: indygreg/python-zstandard#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.

@samuelcolvin
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants