From cf062e09037c7e54a821b05ef50b3e86683090f8 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 26 Jan 2023 13:59:35 -0700 Subject: Improve/fix documentation and comments --- README.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index c8e05ab..955258c 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,10 @@ lowmemjson.NewEncoder(&lowmemjson.ReEncoder{ }).Encode(val) ``` +`*Encoder` and `*ReEncoder` both tend to make many small writes; if +writes are syscalls, you may want to wrap their output in a +`bufio.Writer`. + ### Callee API For defining Go types with custom JSON representations, `lowmemjson` -- cgit v1.2.3-2-g168b