Hi, we are using this library to encode output from json.Marshal into a qrcode.
but converting []byte to string is a copy operation, and we want to minimize that.
having qrcode.Encode variant that accept []byte instead of string would be great.
probably i'll be named qrcode.EncodeBytes, with that we could reuse buffer and probably improve performance.
Hi, we are using this library to encode output from
json.Marshalinto a qrcode.but converting
[]bytetostringis a copy operation, and we want to minimize that.having
qrcode.Encodevariant that accept[]byteinstead ofstringwould be great.probably i'll be named
qrcode.EncodeBytes, with that we could reuse buffer and probably improve performance.