HADOOP-16751: DurationInfo text parsing/formatting should be moved out of hotpath#1754
HADOOP-16751: DurationInfo text parsing/formatting should be moved out of hotpath#1754rbalamohan wants to merge 2 commits intoapache:trunkfrom
Conversation
|
💔 -1 overall
This message was automatically generated. |
|
well spotted perf issue. The patch is doing lazy eval, but it now does it in: start, finish and toString calls, so at least 2x current overhed. better: just have a set that in the constructor and reference as needed, |
|
Thanks for the review Steve. It would be evaluated only once on need basis (textStr takes care of that). Having |
|
I see. and reviewing it, yes, that +1 |
|
merged to trunk; thanks |
DurationInfo is in hotpath in S3A and it would be good to lazy init formatted text. https://issues.apache.org/jira/browse/HADOOP-16751 has the profiler output.