`until` will get an intrinsic in 1.1.4 <https://yo...
# announcements
i
until
will get an intrinsic in 1.1.4 https://youtrack.jetbrains.com/issue/KT-9900
👍 4
e
would it be possible also for
repeat
?
i
What is the issue with
repeat
?
v
the only problem with intrinsics for library functions is that it becomes an expert knowledge what gets optimized and what not.
d
repeat
will already be fully optimized. it's always inlined and it takes advantage of the
..
intrinsic
e
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
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
that'd be awesome!
v
@elect make the first PR to the site, others will follow 😉