diff --git a/ch02/mapNoStar.go b/ch02/mapNoStar.go index d233b00..2a194ec 100644 --- a/ch02/mapNoStar.go +++ b/ch02/mapNoStar.go @@ -5,7 +5,7 @@ import ( ) func main() { - var N = 2000000 + var N = 40000000 myMap := make(map[int]int) for i := 0; i < N; i++ { value := int(i) diff --git a/ch02/mapSplit.go b/ch02/mapSplit.go index 98dd51f..dbe05ae 100644 --- a/ch02/mapSplit.go +++ b/ch02/mapSplit.go @@ -5,7 +5,7 @@ import ( ) func main() { - var N = 2000000 + var N = 40000000 split := make([]map[int]int, 200) for i := range split { split[i] = make(map[int]int) diff --git a/ch02/mapStar.go b/ch02/mapStar.go index 2239012..e452a8e 100644 --- a/ch02/mapStar.go +++ b/ch02/mapStar.go @@ -5,7 +5,7 @@ import ( ) func main() { - var N = 2000000 + var N = 40000000 myMap := make(map[int]*int) for i := 0; i < N; i++ { value := int(i) diff --git a/ch02/sliceGC.go b/ch02/sliceGC.go index 9815ca3..f7fbf5f 100644 --- a/ch02/sliceGC.go +++ b/ch02/sliceGC.go @@ -9,7 +9,7 @@ type data struct { } func main() { - var N = 2000000 + var N = 40000000 var structure []data for i := 0; i < N; i++ { value := int32(i)