Skip to content

Implicit search optimization possibilities #494

Closed
@retronym

Description

@retronym
  • ImplicitInfo could cache the deconstructed MethodType, leaving an array of class symbols of the parameter types and the result type. We could then consult this in isPlausiblyCompatible, rather than deconstructing each time a candidate is checked for plausbile compatibility.
  • The result of depoly(info.tpe) could be cached in ImplicitInfo rather than being recomputed each time a candidate is considered in matchesPt
  • Rather than just considering type refs to class symbols in the fast checks, consider bounds. WIP: Rule out more implicit based on bounds of type parameters scala#6524

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions