hiero-ledger / hiero-ledger/hiero-consensus-node
Replace DataFileWriter thread-local staging buffers with positioned MemoryData writes
Open
Performance
Platform
Platform Virtual Map
- Dominant language
- Java
- Stars
- 406
- Forks
- 226
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 210
Description
`DataFileWriter` currently uses `SEGMENT_CACHE` and `WRITE_CACHE` as per-thread staging buffers. Each data item is serialized into heap-backed `MemoryData` and then copied into the mapped writing window using `MemorySegment.copy()`.
This workaround was introduced because PBJ did not support positioned writes. That limitation has now been addressed by https://github.com/hashgraph/pbj/issues/790 and https://github.com/hashgraph/pbj/pull/837
Contributor guide
Assessment
This issue has not been assessed yet.