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 4 replies @benleggiero Really strange that nobody seems to mention this in the reddit comments about this post: https://www.reddit.com/r/programming/comments/6jegsg/kotlin_hidden_costs_benchmarks/ They did complain a lot about the earlier article without benchmarks.