From 9c323e5923e99a78d06c35ae8ced85842e6bd442 Mon Sep 17 00:00:00 2001 From: Mihalis Tsoukalos Date: Tue, 22 Jan 2019 12:41:37 +0200 Subject: [PATCH] GC performance --- ch02/sliceGC.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ch02/sliceGC.go b/ch02/sliceGC.go index f7fbf5f..7452cb7 100644 --- a/ch02/sliceGC.go +++ b/ch02/sliceGC.go @@ -5,14 +5,14 @@ import ( ) type data struct { - i, j int32 + i, j int } func main() { var N = 40000000 var structure []data for i := 0; i < N; i++ { - value := int32(i) + value := int(i) structure = append(structure, data{value, value}) }