Class | Description |
---|---|
ArrayPrimitive |
Using Array leads to implicit boxing and performance hit. Prefer using Kotlin specialized Array
Instances.
|
ForEachOnRange |
Using the forEach method on ranges has a heavy performance cost. Prefer using simple for loops.
|
SpreadOperator |
Using a spread operator causes a full copy of the array to be created before calling a method.
This has a very high performance penalty.
Benchmarks showing this performance penalty can be seen here:
https://sites.google.com/a/athaydes.com/renato-athaydes/posts/kotlinshiddencosts-benchmarks
|
UnnecessaryTemporaryInstantiation |
Avoid temporary objects when converting primitive types to String. This has a performance penalty when compared
to using primitive types directly.
To solve this issue, remove the wrapping type.
|