From 491f13ac20bc0666592b3bb9303630142ef17353 Mon Sep 17 00:00:00 2001 From: Damian Gryski Date: Thu, 5 Apr 2018 22:47:11 -0700 Subject: [PATCH] should talk about size classes w/r/t memory optimization --- performance.md | 1 + 1 file changed, 1 insertion(+) diff --git a/performance.md b/performance.md index 87f008d..fb434af 100644 --- a/performance.md +++ b/performance.md @@ -840,6 +840,7 @@ allocate it. But you also pay every time the garbage collection runs. * slicing vs. offset: pointer writes while GC is running need writebarrier: https://github.com/golang/go/commit/b85433975aedc2be2971093b6bbb0a7dc264c8fd * use error variables instead of errors.New() / fmt.Errorf() at call site (performance or style? interface requires pointer, so it escapes to heap anyway) * use structured errors to reduce allocation (pass struct value), create string at error printing time +* size classes ## Runtime and compiler