Github user robertdale commented on a diff in the pull request: https://github.com/apache/tinkerpop/pull/919#discussion_r211934120 --- Diff: gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/DefaultTraversalMetrics.java --- @@ -208,14 +208,14 @@ private void handleNestedTraversals(final Traversal.Admin traversal, final Mutab private void appendMetrics(final Collection<? extends Metrics> metrics, final StringBuilder sb, final int indent) { // Append each StepMetric's row. indexToLabelMap values are ordered by index. for (Metrics m : metrics) { - String rowName = m.getName(); + final StringBuilder metricName = new StringBuilder(m.getName()); // Handle indentation for (int ii = 0; ii < indent; ii++) { - rowName = " " + rowName; + metricName.insert(0, " "); } --- End diff -- Would it make sense to put this block before the name then it won't have to do inserts?
---