Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.
This repository was archived by the owner on May 25, 2023. It is now read-only.

uint128 commit caused across-the-board performance regression #102

Closed
@josharian

Description

@josharian

It's particularly noticeable in IPPrefix.Contains, which doubled in execution time.

The problem is that the compiler doesn't SSA arrays, so we generate a whole bunch of useless register moves.

The fix is probably to make the uint128 type a struct with lo and hi members.

cc @bradfitz @danderson

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions