mysql icon indicating copy to clipboard operation
mysql copied to clipboard

[database/sql] At least 32 bytes of garbage allocated per column

Open bradfitz opened this issue 11 years ago • 1 comments

This is not a go-sql-driver/mysql bug report, but a bug report against database/sql and database/sql/driver itself.

I filed the master bug here:

https://code.google.com/p/go/issues/detail?id=6918

... which is that even with sql.RawBytes, the design of database/sql and database/sql/driver requires garbage to be allocated per column.

This bug is about adding support for *driver.Sink which I hope to add to database/sql in Go 1.3.

bradfitz avatar Dec 09 '13 11:12 bradfitz

Thoughts on the design are welcome at https://github.com/golang/go/issues/6918 [Edited by JS]

Thanks!

bradfitz avatar Dec 09 '13 11:12 bradfitz