Init the collection types to the expected size
PiperOrigin-RevId: 558102287
This commit is contained in:
parent
2386b7e944
commit
a5903f5d3e
@ -254,8 +254,8 @@ public final class DebugTraceUtil {
|
||||
private int totalCount;
|
||||
|
||||
public EventLogger() {
|
||||
firstLogs = new ArrayList<>();
|
||||
lastLogs = new ArrayDeque<>();
|
||||
firstLogs = new ArrayList<>(MAX_FIRST_LAST_LOGS);
|
||||
lastLogs = new ArrayDeque<>(MAX_FIRST_LAST_LOGS);
|
||||
totalCount = 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user