https://kotlinlang.org logo
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
benchmarks
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
confetti
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hiring-french
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
lincheck
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by
Title
r

rpillay

10/27/2020, 6:16 AM
Does anyone else notice extremely poor performance of IntelliJ IDEA when editing kotest files? All versions I've tried. I'm not sure what it is about the kotest files that it doesn't like...
👍 1
Using WordSpec
w

wasyl

10/27/2020, 6:56 AM
Yes, it’s brought up every once in a while. It’s a Kotlin/IJ thingy, sadly. Afaik the only thing we can do for now is submit a ticket on youtrack and hope the issues are resolved in new Kotlin releases
r

rpillay

10/27/2020, 7:05 AM
😢 I'll raise a ticket with the data I have
Thanks!
l

LeoColman

10/27/2020, 1:53 PM
I do believe there's a ticket available
@sam do you have the link easily?
w

wasyl

10/27/2020, 1:57 PM
I think Jetbrains folks encourage to just create tickets regardless, and they’ll figure out if it’s a duplicate that needs to be merged
s

sam

10/27/2020, 1:58 PM
I think there are several tickets floating about
I don't suffer from this issue myself, but I don't have 1500 line test files. Some things I've heard are slow in kotlin are lots of type parameters
l

LeoColman

10/27/2020, 2:04 PM
I don't suffer with this either. My biggest test class is about 600 lines long
s

sam

10/27/2020, 2:04 PM
Kotlin can certainly be slow in the IDE in places but that's in normal files
I read somewhere that 1.4.20 is supposed to be much faster
l

LeoColman

10/27/2020, 2:08 PM
I read the same about 1.4.10 and 1.4.0
☝️ 2
😂 5
xD
w

wasyl

10/27/2020, 2:09 PM
Well I just opened one of my specs, 350 lines: 6 seconds to even render the file, then another 12 seconds to analyze it
:mother-of-god: 2
s

sam

10/27/2020, 2:10 PM
If you uninstall the kotest plugin does it render any faster (I assume not, just like to rule things out)
w

wasyl

10/27/2020, 2:17 PM
Non-scientifically: it does seem faster, but I’m not eager to jump to conclusions. If I find some time I’ll try to profile a bit, see if there’s any measurable impact
s

sam

10/27/2020, 2:17 PM
like 6 seconds down to 2 seconds faster
or 6 seconds down to 5 seconds faster
w

wasyl

10/27/2020, 2:23 PM
Oh sorry, like initial 6 seconds to load was roughly the same (but also varied wildly), but then 12s down to ~6s for analysis
s

sam

10/27/2020, 2:23 PM
So the plugin is adding time to analyze - how big is the file
w

wasyl

10/27/2020, 2:26 PM
350 loc, 16 `describe`s, 29 `it`s. But also has utilities:
private suspend fun DescribeScope.whenTimeAdvancesBy(duration: Duration, block: suspend DescribeScope.() -> Unit) =
    describe("when time advances by $duration") {
        Dispatchers.testMainDispatcher.advanceTimeBy(duration)
        block()
    }
and another similar one with two nested describes and an assertion. And like 5 mocks with generic params
s

sam

10/27/2020, 2:29 PM
I'll spend some time next week looking over the plugin to see if it's doing anything silly
👍 1
r

rpillay

10/28/2020, 4:38 AM
My tests aren't even that big or complex. I have one that's about 600 lines long. WordSpec, the most complex bit being that its taking in 6 generators in the checkAll function
yet the performance is terrible
eg.
checkAll(Arb.string(), Arb.string().orNull(), Arb.string().orNull(), Arb.string().orNull())
I wonder if thats the reason
s

sam

10/28/2020, 4:51 AM
if you comment that out what happens
r

rpillay

10/28/2020, 7:09 AM
a 2 minute naive test (just commenting them all out and editing) returns IntelliJ to normal responsiveness
I'm going to try refactoring this to use checkAll, but with only 1 parameter and see what happens