scala-dev icon indicating copy to clipboard operation
scala-dev copied to clipboard

Investigate: make private methods public to enable inlining

Open lrytz opened this issue 10 years ago • 2 comments
trafficstars

The old optimizer makes synthetic and paramaccessor methods public to enable inlining methods that invoke them.

https://github.com/scala/scala/blob/2.11.x/src/compiler/scala/tools/nsc/backend/opt/Inliners.scala#L659

lrytz avatar Aug 10 '15 12:08 lrytz

See also: https://github.com/scala/scala/blob/2.11.x/src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala#L248-L254

retronym avatar Aug 10 '15 12:08 retronym

discussion, linked from Jason's reference https://groups.google.com/forum/#!topic/scala-internals/iPkMCygzws4

see also https://github.com/scala/scala/commit/e6b4204604b667f070f61837a31cbb586107696e

lrytz avatar Oct 20 '15 15:10 lrytz