rorygraves / scalac_perf

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

Elide some asserts #50

Open mkeskells opened 6 years ago

mkeskells commented 6 years ago

Some asserts are for developers in scalac only

Elide or remove or use almost final values to avoid the costs

mkeskells commented 6 years ago

First step would be record the costs

It's not just the cost of the call though as we will probably have data structures that are only created for the asserts

Some asserts are needed so this will involve much discussion with typesafe when we have the stats