-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Bad performance involving cats Resource
and apply
#14366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
Resource
and apply
Resource
and apply
Asymptomatic wasn't the word I was looking for :D anyways, you get my point :) |
Fixed literally yesterday: #14333 :) Try |
Indeed. Before:
After:
|
Awesome, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Compiler version
3.1.0, 3.1.1
Minimized code
I minimized it from production code, but didn't inline the needed parts from cats and cats effect.
Scastie doesn't show how long it takes to compile, but you can see the difference. Here is the link anyway https://scastie.scala-lang.org/nQC63vOCTG6GuodVwwWKOg
Output
The two expressions
faster
andslower
are equivalent, but one has the definition broken up in two. note that no futher types are ascribed.On my machine compiling
slower
takes about 10 seconds, whilefaster
is nearly instant.Expectation
The text was updated successfully, but these errors were encountered: