File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,8 @@ r = string(b)
79
79
% go test -bench=. ./examples/concat/
80
80
```
81
81
82
+ _Bonus question_: All four benchmarks got _slower_ from Go 1.10 to Go 1.11 _on this Mac_. Any ideas why?
83
+
82
84
## Preallocate slices if the length is known
83
85
84
86
Append is convenient, but wasteful.
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ This repository is licensed under the [Creative Commons Attribution-ShareAlike 4
37
37
[ 1 ] : 1-welcome/1-welcome.md
38
38
[ 2 ] : 2-benchmarking/benchmarking.md
39
39
[ 3 ] : 3-profiling/1-profiling.md
40
- [ 4 ] : 4-compiler-optimisation /1-compiler-optimisation.md
40
+ [ 4 ] : 4-compiler-optimisations /1-compiler-optimisation.md
41
41
[ 5 ] : 5-execution-tracer/1-execution-tracer.md
42
42
[ 6 ] : 6-memory-management/1-memory-management.md
43
43
[ 7 ] : 7-tips-and-tricks/1-tips-and-tricks.md
You can’t perform that action at this time.
0 commit comments