flib
flib copied to clipboard
Benchmark slice == nil vs len(slice) == 0
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.