Skip to content

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

@fmstephe

Description

@fmstephe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions