Absolutely avoid calling forEach on Ranges. The co...
# announcements
k
Absolutely avoid calling forEach on Ranges. The cost is extremely high at around 300% https://sites.google.com/a/athaydes.com/renato-athaydes/posts/kotlinshiddencosts-benchmarks Thread in Slack Conversation For each is inline though, right? If so, the foreach and the lambda aren't present in the generated bytecode, and there's no performance hit.