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 /borrowed_misc.go | |
parent | debef01cc500fb9368e1d6d0206a32ca358a8c98 (diff) | |
parent | 0d23080e1f2af81d8d4656c3b72791b26f52f361 (diff) |
Merge branch 'lukeshu/perf'
Diffstat (limited to 'borrowed_misc.go')
-rw-r--r-- | borrowed_misc.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/borrowed_misc.go b/borrowed_misc.go index 52f4a12..e4cda6d 100644 --- a/borrowed_misc.go +++ b/borrowed_misc.go @@ -11,6 +11,8 @@ import ( "math" "reflect" "strconv" + + "git.lukeshu.com/go/lowmemjson/internal/fastio/noescape" ) // isEmptyValue is borrowed from encode.go. @@ -66,7 +68,7 @@ func encodeFloat(w io.Writer, bits int, v reflect.Value) error { } } - if _, err := w.Write(b); err != nil { + if _, err := noescape.Write(w, b); err != nil { return err } return nil |