akka/akka — pull request #400 by oschulz (2012-04-18 21:15:42+00:00)
Title: Fixed ByteStringBuilder.resizeTemp

ByteStringBuilder single-byte addition (with +=) was unusable due to exponential time behaviour.
Reason: resizeTemp didn't update _tempCapacity, causing ByteStringBuilder to create a new _temp array on each call of +=.

Test case (took 30s to complete):

```scala
val bld = new ByteStringBuilder()
for (i <- 0 to 300000) { bld += 0.toByte }
```