-
Notifications
You must be signed in to change notification settings - Fork 106
Switch Buffers to memoryviews & remove extra copies/allocations
#656
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
0c823e2
Switch `Buffer`s to `memoryview`s
jakirkham c690446
Merge zarr-developers/main into jakirkham/use_mv
jakirkham 9ac8d8e
Add back `ZSTD_freeCCtx`
jakirkham 0ade20c
Drop leftover `Buffer` from merge conflict
jakirkham 13f8e50
Add minor comment
jakirkham bd1c401
Add trivial `try...finally...`s to cleanup diff
jakirkham 64eed12
Use Cython `cimport`s for Python C API
jakirkham 31a7446
Add news entry
jakirkham 9069553
Move `cimport`s from `libc` up top
jakirkham 1ab9983
Resize buffers without copying
jakirkham f91c283
Write directly to output array in VLen*
jakirkham d0a7721
Use `_mv` subscript name for typed-memoryivews
jakirkham 7bc8022
Avoid excess copies in fletcher32
jakirkham 4341ce3
Add news entry for better memory usage
jakirkham 4baf1e1
Fix fletecher32's `cimport`s
jakirkham 0ea019c
Fix blank lines to match
jakirkham 2b871c7
Reassign `dest` with `dest_objptr`
jakirkham bdc7bc9
Fix `source_ptr` type
jakirkham 0bfafed
Fix declaration order
jakirkham c17e314
Wrap `_PyBytes_Resize` for improved usability
jakirkham 54fd4b2
Add `ensure_continguous_memoryview` function
jakirkham eac4ef1
Use `ensure_contiguous_memoryview`
jakirkham a77e8cf
Move `PyBytes_RESIZE` macro to `compat_ext`
jakirkham fb5ffac
Minimize diff by readding blank line after `try`
jakirkham 9b289c6
Group `encv` with `value` args
jakirkham 7d593b8
Organize `vlen`'s `imports`
jakirkham 7d68d53
Use `ensure_contiguous_memoryview` with VLen
jakirkham b6d91ce
Space out input arg handling & checksum check
jakirkham 2dd1cdf
Use `memcpy` to speedup copies in `fletcher32`
jakirkham b7bb7ef
In fletcher32's if output buffer, slice from input
jakirkham c83136a
Unwrap lines no longer needing wrapping
jakirkham File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.