Peephole optimization of SymbolMapsLinker.

Hoist up and reuse a ByteArrayOutputStream and especially StringBuffer.  This linker has a MUCH better memory/gc profile when we can avoid creating tons of temporary buffers over and over.  We also reuse a char[] to transfer data from StringBuffer to PrintWriter to avoid having to create intermediate Strings.

Review by: spoon, fabbott

git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@5402 8db76d5a-ed1c-0410-87a9-c151d255dfc7
1 file changed