Skip to content

[JBMAR-213] Unnecessary flush in SimpleDataOutput causes performance issue #156

@dmlloyd

Description

@dmlloyd

Fred Ling opened JBMAR-213 and commented

In the write functions of SimpleDataOutput, it needs to flush the internal buffer when it is full or write a big bytes. However, it does not need to flush the underlying stream like it is currently; doing so will overwrite the underlying buffer and decrease performance significantly. In such write functions, it should use shallowFlush() method instead.


Affects: 1.4.10.Final

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions