[
https://issues.apache.org/jira/browse/HBASE-28613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Istvan Toth updated HBASE-28613:
--------------------------------
Description:
We are currently marshalling protobuf into a byte array, and then send that to
the client.
This is both slow and memory intensive.
I see a ~15% reduction in the REST server CPU usage for my benchmark with this
patch.
was:
We are currently marshalling protobuf into a byte array, and then send that to
the client.
This is both slow and memory intensive.
Using streaming instead results in huge perf improvements. In my bechnmark,
both the wall clock time was almost halved, while the REST server CPU usage was
reduced by 40%.
wall clock: 120s ->65s
Total REST CPU: 300s -> 180s
> Use streaming when marshalling protobuf REST output
> ---------------------------------------------------
>
> Key: HBASE-28613
> URL: https://issues.apache.org/jira/browse/HBASE-28613
> Project: HBase
> Issue Type: Improvement
> Components: REST
> Reporter: Istvan Toth
> Assignee: Istvan Toth
> Priority: Major
>
> We are currently marshalling protobuf into a byte array, and then send that
> to the client.
> This is both slow and memory intensive.
> I see a ~15% reduction in the REST server CPU usage for my benchmark with
> this patch.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)