Skip to content

BufferedRandomAccessWriter flushes on call to position, may lead to inefficient buffering #562

@michaeljmarshall

Description

@michaeljmarshall

I am going to investigate the BufferedRandomAccessWriter performance. Specifically, we flush when we call position(), and that appears to prevent efficient buffering.

Based on my preliminary tests, there are cases where we flush very small numbers of byte at a time. In the OnDiskGraphIndexWriter#write method, we call position() in an assertion, and that means that we flush once per node instead of when the buffer is full.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions