You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SafetyPropagationTransfer to run in a way where there aren't a lot of Java exceptions generated, so JFR doesn't show the "Thrown Errors" automated analysis result and ultimately gradle-baseline runs faster.
The text was updated successfully, but these errors were encountered:
What happened?
Running with gradle-jfr on one of my repos, I found that my compileJava task was throwing tens of thousands of exceptions:
Looking at the causes, I think it's mostly related to gradle-baseline's SafetyPropagationTransfer class
Specifically the
getPath
call on this line:gradle-baseline/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/safety/SafetyPropagationTransfer.java
Line 1025 in 5f0dd88
It seems like that call ends up throwing lots of Exceptions farther down in the
com.sun.source
code, and heavy use of Exceptions can cause slowness: https://shipilev.net/blog/2014/exceptional-performance/What did you want to happen?
SafetyPropagationTransfer to run in a way where there aren't a lot of Java exceptions generated, so JFR doesn't show the "Thrown Errors" automated analysis result and ultimately gradle-baseline runs faster.
The text was updated successfully, but these errors were encountered: