Skip to content

Commit 481ad6f

Browse files
Zero-copy support in BufferedTrajectory (#96)
- Use contiguous arrays to hold various Timestep arrays for full buffer size - Use a simple ring buffer of above arrays to hold full Timesteps - Load and return Timesteps directly into / from the buffer without copy - A new MultiArrayBuffer class to hold multiple np arrays in one mem block - individual np arrays 64-byte aligned - support for using shared memory (across parallel workers) - caching support on parallel workers to avoid re-attach every time - Cleanup handling of the buffer across disconnect / connect, shutdown - Universe config option in UI to enable use of shared memory (default True)
1 parent 7e1bc3e commit 481ad6f

8 files changed

Lines changed: 492 additions & 58 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ The rules for this file:
3030
<!-- New added features -->
3131

3232
- Parallelization improvements (PR #93)
33+
- Zero-copy support in BufferedTrajectory (PR #96)
3334

3435
### Fixed
3536

0 commit comments

Comments
 (0)