Repository navigation
Commit 481ad6f
authored
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
- mdadash
- backend
- kernel
- state
- tests
- widgets
- frontend/src
- __tests__/views
- views
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
0 commit comments