-
Notifications
You must be signed in to change notification settings - Fork 11
Memory-mapped file handling and streaming API #39
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
Open
jgoedeke
wants to merge
12
commits into
RecordEvolution:master
Choose a base branch
from
jgoedeke:numpy-streaming
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
- Add pytest configuration for test management - Implement test suite for CLI functionality and Python module - Update README with testing instructions and badge - Fix Dockerfile - Create .dockerignore to exclude unnecessary files from Docker builds - Add GitHub Actions workflows for testing - Clean up makefile to include test commands
…example and tests
86df1f2 to
d416f25
Compare
…es for chunked NumPy export
- Modified `component_group` and `channel` constructors to accept raw buffer pointers instead of vectors. - Enhanced `load_all_data` and `init_metadata` methods for better data initialization and loading. - Implemented `read_chunk` method in `channel` to facilitate chunked data reading with support for raw and scaled modes. - Updated `convert_data_to_type` and `convert_chunk_to_double` functions to handle raw data more efficiently. - Removed redundant `imc_result.hpp` file to streamline the codebase. - Adjusted Python bindings in `imctermite.pyx` to manage C++ instance memory correctly.
- Update GitHub Actions workflow to support testing on multiple OS - Refactor memory mapping in imc_buffer.hpp for Windows compatibility - Improve makefile to handle .pyd files for Python builds - Add comprehensive tests for streaming and chunking functionality in test_streaming.py
…ficiency (RecordEvolution#9) Reduces memory usage by 90% for large datasets while maintaining comparable processing speed.
d416f25 to
27d8215
Compare
…ples and core functionality
ae7a7b5 to
645cba6
Compare
Contributor
Author
|
I just realized the new ChangesPackaging
CI/CD
Documentation
Build System
TestingAll existing tests pass. CI workflows validated on Ubuntu and Windows with Python 3.10-3.13. |
- Migrate from setup.cfg to pyproject.toml with PEP 517/621 compliance - Update to Python build tools (replace setup.py commands with python -m build) - Upgrade all GitHub Actions to latest versions (@v4, ubuntu-latest) - Remove outdated cibuildwheel version pinning - Add numpy as explicit build and runtime dependency - Bump package version to 3.0.0 - Improve test documentation with development install guidance - Add Python version badge to README - Standardize python3 usage across makefiles
645cba6 to
c2c9109
Compare
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.
This PR introduces memory-mapped file handling and a streaming API to enable efficient processing of large IMC files without loading the entire dataset into memory.
Key Changes:
Performance Improvements:
Benchmarks comparing the new memory-mapped implementation against the baseline show significant improvements in both memory efficiency and load times:
NOTE: This PR is based on #37
Closes #33
Closes #9