Zhenyuan Zhao created ARROW-3694: ------------------------------------ Summary: [Java] Avoid superfluous string creation when logging level is disabled Key: ARROW-3694 URL: https://issues.apache.org/jira/browse/ARROW-3694 Project: Apache Arrow Issue Type: Improvement Components: Java Affects Versions: 0.11.1 Reporter: Zhenyuan Zhao Fix For: 0.12.0
There are a few places where strings were unnecessarily created for logging purpose. [https://github.com/apache/arrow/blob/ed70f051bb0636d994f285c38503b992d08efa00/java/vector/src/main/java/org/apache/arrow/vector/ipc/message/ArrowRecordBatch.java#L75] For the above scenario in ArrowRecordBatch, roughly 2/3 of the total CPU was spent in string.format() -- This message was sent by Atlassian JIRA (v7.6.3#76005)