flib icon indicating copy to clipboard operation
flib copied to clipboard

Benchmark slice == nil vs len(slice) == 0

Open fmstephe opened this issue 9 years ago • 0 comments

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.

fmstephe avatar Sep 12 '16 20:09 fmstephe