Skip to content

Commit

Permalink
Give String buffer for reports an appropriate initial capacity.
Browse files Browse the repository at this point in the history
  • Loading branch information
renato committed Jan 10, 2019
1 parent c409450 commit 4cb6383
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -30,7 +30,7 @@ abstract class AbstractHtmlCreator<T> {
}

String reportFor( T data ) {
def writer = new StringWriter()
def writer = new StringWriter( 4096 )
def builder = new MarkupBuilder( new IndentPrinter( new PrintWriter( writer ), "" ) )
builder.expandEmptyElements = true
builder.html {
Expand Down

0 comments on commit 4cb6383

Please sign in to comment.