Skip to content

Commit

Permalink
Eliminated garbage produced in appendTo for set-based fields to allow…
Browse files Browse the repository at this point in the history
… full GC-free logging of decoders
  • Loading branch information
vdaniloff committed Feb 21, 2020
1 parent 1af4e28 commit c011057
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3393,10 +3393,13 @@ private int writeTokenDisplay(
break;

case BEGIN_ENUM:
case BEGIN_SET:
append(sb, indent, "builder.append(" + fieldName + "());");
break;

case BEGIN_SET:
append(sb, indent, fieldName + "().appendTo(builder);");
break;

case BEGIN_COMPOSITE:
{
final String typeName = formatClassName(decoderName(typeToken.applicableTypeName()));
Expand Down

0 comments on commit c011057

Please sign in to comment.