-
Notifications
You must be signed in to change notification settings - Fork 122
Open
Labels
Description
- http://www.scala-lang.org/blog/2016/07/08/trait-method-performance.html
- http://www.scala-lang.org/news/2.12.0-M5
- SD-98 don't emit unnecessary mixin forwarders scala/scala#5085 SD-98 don't emit unnecessary mixin forwarders
In most cases when a class inherits a concrete method from a trait we
don't need to generate a forwarder to the default method in the class.
This means we could skip the invalidation of classes extending traits in most cases.
notes
after this patch there are two situations where a trait forwarder is emitted:
- a class inherits the same method from two traits, and the two traits are not in a inheritance relationship.
- a class inherits a concrete method from a trait, and the same method also exists (abstract or concrete) in a superclass.