[
https://issues.apache.org/jira/browse/HBASE-24791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17166944#comment-17166944
]
Yechao Chen commented on HBASE-24791:
-------------------------------------
This can imporve a lot
A simple test case
before improve cost: 8566118066 7954087533 7990385173 8121662923 8094065619
8107938198 8045528125 8116824329 8122912440 8108117395
after improve cost: 1536854 50156 1097601 33953 9907 10927 10445 13076 8596
10386
before all cost: 81227.639801 ms
after all cost : 2.781901 ms
before vs after: 29198.60908098455:1
The test code in
https://github.com/utf7/hbase-client-example/blob/master/src/test/java/TestGetTableRelativePathImprove.java
> Improve HFileOutputFormat2 to avoid always call getTableRelativePath method
> ---------------------------------------------------------------------------
>
> Key: HBASE-24791
> URL: https://issues.apache.org/jira/browse/HBASE-24791
> Project: HBase
> Issue Type: Improvement
> Reporter: Yechao Chen
> Assignee: Yechao Chen
> Priority: Major
>
> Bulkload use HFileOutputFormat2 to write HFile
> In the HFileOutputFormat2.RecordWriter
> in the write method always called the getTableRelativePath method each time
> This is unnecessary
--
This message was sent by Atlassian Jira
(v8.3.4#803005)