Pre allocating slices with a target size reduces the number of allocations because we already know how big the slice will be and therefore need to allocate only once