scalac_perf
scalac_perf copied to clipboard
The Scala programming language
``` @inline final override def foreach[U](f: A => U) { var these = this while (!these.isEmpty) { f(these.head) these = these.tail } } ``` could be ``` @inline final override...
move thread start/stop to ThreadFactory avoid race on shutdown profile a hook for lock contention in profiler add reporting of lock stats in profiler
If a Vector is compared to another Vector (or some other collection that efficiently implements length and apply) then we should prefer that mechanism, with a default/fallback to the existing...
If n=0 or 1 no need to create builders etc
String Interpolation is slow at run time and inefficient code generation, with lots of temporary garbage generated convert s and raw to macros (like f is already) generate optimal code...
improve some work started on this in 2.12.x_classpath_2
move the non typechecking things after typer e.g. rangepos validation lint etc opportunities for parallelization
rangepos is read only, and doesn't cause typing - its a check of the relative positions in the tree it seems to be a good candidate to be moved into...
this contains scala aliases for java.lang.Math primitives e.g. ``` /** @group minmax */ def min(x: Int, y: Int): Int = java.lang.Math.min(x, y) /** @group minmax */ def min(x: Long, y:...