Skip to content

Define hashCode as a lazy val #1007

Open
@iRevive

Description

@iRevive

We can experiment with the following encoding:

@threadUnsafe
override final lazy val hashCode: Int = Hash[X].hash(this)

Currently, we recalculate hashCode every time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions