Feat/feature wasm saveload support #14#18
Merged
Conversation
- **async:** Implement rayon and make loading and saving multithreaded.
- **mmap:** Includes mmap and uses it in open as in <=v0.5.3: `unsafe { Mmap::map(&file)? };`.
- **common:** Enables the two previous features as one.
Added alternative methods to use a buffer directly.
- **async:** Implement rayon and make loading and saving multithreaded.
- **mmap:** Includes mmap and uses it in open as in <=v0.5.3: `unsafe { Mmap::map(&file)? };`.
- **common:** Enables the two previous features as one.
Added alternative methods to use a buffer directly (write, write_sync).
- Changed: writer_to_write -> write
3 tasks
- **async:** Implement rayon and make loading and saving multithreaded.
- **mmap:** Includes mmap and uses it in open as in <=v0.5.3: `unsafe { Mmap::map(&file)? };`.
- **common:** Enables the two previous features as one.
Added alternative methods to use a buffer directly (write, write_sync).
- Changed: writer_to_write -> write
- Update a majority of documentation to use this new API.
- **async:** Implement rayon and make loading and saving multithreaded.
- **mmap:** Includes mmap and uses it in open as in <=v0.5.3: `unsafe { Mmap::map(&file)? };`.
- **common:** Enables the two previous features as one.
Added alternative methods to use a buffer directly (write, write_sync).
- Changed: writer_to_write -> write
- Update a majority of documentation to use this new API.
Update axes task runner configuration, refine gitignore, and introduce comprehensive API integration tests.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
📝 Summary of Changes
Parcode::save-> Only accepts aPathto save directly to storage (Not compatible with WASM)Parcode::write-> Performs the function of.write_to_writer(...), serializes and saves to the given bufferParcodeOption.write_to_writer-> Now calledParcodeOption.writeParcode::inspect-> Equivalent to ParcodeInspector::inspectParcode::inspect_bytes-> Accepts Vec Buffers directlyParcode::open_bytes-> AsParcode::openbut accepts manual data buffer directly.Parcode::save_sync-> Saves data using single-threaded algorythm. (Not compatible with WASM)Parcode::write_sync-> Saves data into a manual buffer.Parcode::serialize-> Serialize all data in a new buffer and return it.Parcode::load-> Updated to set as no compatible with WASMParcode::load_bytes-> This method accepts a manual buffer to loadsParcode::open_bytes-> Open data using a buffer (byte slice)mmap-> habilite mmap to access files instantlyparallel-> Habilite rayon to all parallel uses cases🔗 Related Issue
✅ Checklist
cargo fmt).cargo clippy --all-targets --all-features -- -D warningsand addressed all issues.cargo test).README.md, code comments, etc.).💥 Breaking Changes