hiero-ledger / hiero-ledger/hiero-consensus-node

Replace DataFileWriter thread-local staging buffers with positioned MemoryData writes

Open
#26,889 0 comments 0 reactions 1 assignee Claimed by @artemananiev View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.