We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9101fd commit f3e6ed8Copy full SHA for f3e6ed8
sql/byte_buffer.go
@@ -59,7 +59,7 @@ func (b *ByteBuffer) Grow(n int) {
59
// length.
60
func (b *ByteBuffer) Double() {
61
// TODO: This wastes memory. The first half of b.buf won't be referenced by anything.
62
- buf := make([]byte, len(b.buf)*2)
+ buf := make([]byte, cap(b.buf)*2)
63
copy(buf, b.buf)
64
b.buf = buf
65
}
0 commit comments