From ebca72eaee918d303c532feb7ff29afdcd8c2efa Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Sat, 9 Mar 2024 01:38:47 -0800 Subject: [PATCH] writer: use 'halve' instead of 'half' (#1273) --- writer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/writer.go b/writer.go index 3c7af907..3817bf53 100644 --- a/writer.go +++ b/writer.go @@ -635,7 +635,7 @@ func (w *Writer) WriteMessages(ctx context.Context, msgs ...Message) error { } } - // We use int32 here to half the memory footprint (compared to using int + // We use int32 here to halve the memory footprint (compared to using int // on 64 bits architectures). We map lists of the message indexes instead // of the message values for the same reason, int32 is 4 bytes, vs a full // Message value which is 100+ bytes and contains pointers and contributes