Skip to content

Commit

Permalink
Tunes the initial size of the EExpressionArgReader's expressions Arra…
Browse files Browse the repository at this point in the history
…yList.
  • Loading branch information
tgregg committed Jan 16, 2025
1 parent 905dfbb commit cb37a5c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ public abstract class EExpressionArgsReader {

private final ReaderAdapter reader;

// Reusable sink for expressions.
protected final List<Expression.EExpressionBodyExpression> expressions = new ArrayList<>(16);
// Reusable sink for expressions. The starting size of 64 is chosen so that growth is minimized or avoided for most
// e-expression invocations.
protected final List<Expression.EExpressionBodyExpression> expressions = new ArrayList<>(64);

/**
* Constructor.
Expand Down

0 comments on commit cb37a5c

Please sign in to comment.