performance hack

pull/1/head
Michael Peter Christen 13 years ago
parent 803963aebd
commit d5c1f2746e

@ -68,7 +68,7 @@ public final class ByteBuffer extends OutputStream {
} }
public ByteBuffer(final String s) { public ByteBuffer(final String s) {
this.buffer = s.getBytes(UTF8.charset); this.buffer = UTF8.getBytes(s);
this.length = this.buffer.length; this.length = this.buffer.length;
this.offset = 0; this.offset = 0;
} }

Loading…
Cancel
Save