Skip to content

improvments for synthetic case class hashCode #5781

@scabug

Description

@scabug

In 0e197e89ac there are custom hashCodes being spun for case classes. Some things left to do:

  • tragically, specialized classes do not yet benefit. Not sure how to deal with that; I suppose it will have to go into the specialization phase.

  • if a class has nothing but generic elements in the product, there's no benefit to unrolling a giant series of "anyHash" calls. May as well just pass the product like before and save the code size.

  • Case classes should probably be seeded on the string representation of the class name, like case objects use for their hashcode. Right now everything is seeded wit the MurmurHash3 "product" seed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions