Benchmark slice == nil vs len(slice) == 0
Opened this issue · 0 comments
fmstephe commented
Many of the queues have the option of returning a nil slice explicitly or returning an empty slice instead.
I would prefer to return an empty slice, although nils are currently used. It would be good to know if this is a performance neutral change.