[
https://issues.apache.org/jira/browse/RATIS-2383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ivan Andika updated RATIS-2383:
-------------------------------
Description:
[~XiChen] found that AtomicFileOutputStream write is slow because the `
write(byte b[], int off, int len)` uses FilterOutputStream implementation which
calls write(byte b) for each byte.
We should override this API and forward it to the underlying OutputStream
instead.
was:
[~XiChen] found that AtomicFileOutputStream write is slow because the `
write(byte b[], int off, int len)` uses FilterOutputStream implementation which
calls write(byte b) multiple for each byte.
We should override this API and forward it to the underlying OutputStream
instead.
> AtomicFileOutputStream should override FilterOutputStream batch writes API
> --------------------------------------------------------------------------
>
> Key: RATIS-2383
> URL: https://issues.apache.org/jira/browse/RATIS-2383
> Project: Ratis
> Issue Type: Improvement
> Reporter: Ivan Andika
> Assignee: Ivan Andika
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> [~XiChen] found that AtomicFileOutputStream write is slow because the `
> write(byte b[], int off, int len)` uses FilterOutputStream implementation
> which calls write(byte b) for each byte.
>
> We should override this API and forward it to the underlying OutputStream
> instead.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)