Skip to content

Commit

Permalink
StringBuilder 2048
Browse files Browse the repository at this point in the history
  • Loading branch information
sullis committed Feb 23, 2024
1 parent 20fda92 commit 4e3b1d9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ public StringBuilder get() {
return new StringBuilder(16);
}
},
INIT_CAPACITY_2000() {
INIT_CAPACITY_2048() {
@Override
public StringBuilder get() {
return new StringBuilder(2000);
return new StringBuilder(2048);
}
},
THREAD_LOCAL_INIT_CAPACITY_2000() {
THREAD_LOCAL_INIT_CAPACITY_2048() {
@Override
public StringBuilder get() {
StringBuilder sb = ThreadLocal.withInitial(() -> new StringBuilder(2000)).get();
StringBuilder sb = ThreadLocal.withInitial(() -> new StringBuilder(2048)).get();
sb.setLength(0);
return sb;
}
Expand Down

0 comments on commit 4e3b1d9

Please sign in to comment.