rorygraves / scalac_perf

The Scala programming language
http://www.scala-lang.org/
16 stars 3 forks source link

mark things final if they known #47

Open mkeskells opened 6 years ago

mkeskells commented 6 years ago

if the compiler knows that a field is final, mark it as such

java (i think) does this on defs in final classes

filed access can be inlined in final classes, and effectively final ones ( e.g. sealed and known)