Setting an appropriate sizehint for format in Logging, and removing a superfluous FIXME

This commit is contained in:
Viktor Klang 2012-07-25 16:15:01 +02:00
parent 0979ec8ea6
commit a0dbd1f9d7
2 changed files with 1 additions and 2 deletions

View file

@ -874,7 +874,6 @@ class FutureSpec extends AkkaSpec with Checkers with BeforeAndAfterAll with Defa
val l1, l2 = new TestLatch
val complex = Future() map { _
//FIXME implement _taskStack for Futures
val nested = Future(())
nested foreach (_ l1.open())
FutureSpec.ready(l1, TestLatch.DefaultTimeout) // make sure nested is completed

View file

@ -848,7 +848,7 @@ trait LoggingAdapter {
}
def format(t: String, arg: Any*): String = {
val sb = new StringBuilder //FIXME add some decent size hint here
val sb = new StringBuilder(64)
var p = 0
var rest = t
while (p < arg.length) {