You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing a 1.4x speedup for:
```
@benchmark
public Object scalaListBufferPlusEq_212() {
ListBuffer<String> buffer = new ListBuffer<>();
int i = 0;
while (i < size) {
buffer.$plus$eq("");
i += 1;
}
return buffer.result();
}
```
2.12.8
```
[info] Benchmark (size) Mode Cnt Score Error Units
[info] ListsBenchmark.scalaListBufferPlusEq_212 10 thrpt 5 25856046.731 ± 1229100.335 ops/s
```
This patch:
```
[info] Benchmark (size) Mode Cnt Score Error Units
[info] ListsBenchmark.scalaListBufferPlusEq_212 10 thrpt 5 35848876.003 ± 514044.717 ops/s
```
It is still a little short of the 2.13.x performance; in which I saw:
```
[info] ListsBenchmark.scalaListBufferPlusEq 10 thrpt 5 37174742.519 ± 1304768.628 ops/s
[info] ListsBenchmark.scalaListBufferAddOne 10 thrpt 5 37201063.905 ± 2167146.358 ops/s
```
* the `scalaListBufferPlusEq` result requires `-XX:MaxInlineLevel=18`,
discussion at scala/bug#11627)
0 commit comments