https://kotlinlang.org logo
#announcements
Title
# announcements
i

ilya.gorbunov

07/25/2017, 6:29 PM
until
will get an intrinsic in 1.1.4 https://youtrack.jetbrains.com/issue/KT-9900
👍 4
e

elect

07/25/2017, 8:41 PM
would it be possible also for
repeat
?
i

ilya.gorbunov

07/25/2017, 8:51 PM
What is the issue with
repeat
?
v

voddan

07/25/2017, 8:52 PM
the only problem with intrinsics for library functions is that it becomes an expert knowledge what gets optimized and what not.
d

damian

07/26/2017, 12:42 AM
repeat
will already be fully optimized. it's always inlined and it takes advantage of the
..
intrinsic
e

elect

07/26/2017, 6:59 AM
nice to hear
I am really interested in knowing what's optimized and what's not
I'd like to read a deep and full report on Kotlin
for example, I read once an article showing that
forEach
was much slower than a simple
for
v

voddan

07/26/2017, 7:39 AM
forEach
was much slower than a simple
for
That's because
forEach
is a generic function and has to use a generic iterator
I am really interested in knowing what's optimized and what's not
Maybe we need to keep a list of all intrinsics and compiler-level optimizations on kotlinlang.org
e

elect

07/26/2017, 7:48 AM
that'd be awesome!
v

voddan

07/26/2017, 8:50 AM
@elect make the first PR to the site, others will follow 😉
2 Views