diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-02-16 22:56:11 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-02-16 22:56:11 -0700 |
commit | 6f8e7db1ac5ddd21b8e3fcc39a1e30fde9b62c3a (patch) | |
tree | 8f0247b646291577f54f7d164b7fed675388c72c /internal/base64dec | |
parent | debef01cc500fb9368e1d6d0206a32ca358a8c98 (diff) | |
parent | 0d23080e1f2af81d8d4656c3b72791b26f52f361 (diff) |
Merge branch 'lukeshu/perf'
Diffstat (limited to 'internal/base64dec')
-rw-r--r-- | internal/base64dec/base64.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/base64dec/base64.go b/internal/base64dec/base64.go index dcb4b1c..0d278ad 100644 --- a/internal/base64dec/base64.go +++ b/internal/base64dec/base64.go @@ -10,6 +10,7 @@ import ( "strings" "git.lukeshu.com/go/lowmemjson/internal/fastio" + "git.lukeshu.com/go/lowmemjson/internal/fastio/noescape" ) type base64Decoder struct { @@ -84,7 +85,7 @@ func (dec *base64Decoder) decodeTuple(a, b, c, d byte) error { decoded[1] = byte(val >> 8) decoded[2] = byte(val >> 0) - _, err := dec.dst.Write(decoded[:decodedLen]) + _, err := noescape.Write(dec.dst, decoded[:decodedLen]) return err } |