While reading https://golang.org/src/container/heap/example_pq_test.go I found that at line 27 they are using slice of pointers.
// A PriorityQueue implements heap. Interface and holds Items.
type PriorityQueue []*Item
But as per https://philpearl.github.io/post/bad_go_slice_of_pointers/, the slice of pointers benchmarks result is not good. I am just confused, when to use the slice of pointers and when not to use?