typetools / typetools/checker-framework

Algebraic Data Type Performance Problems

Open
#4,412 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Performance
Dominant language
Java
Stars
1.1k
Forks
440
Avg merge
1d 12h
Merged PRs (30d)
134

Description

Thanks so much for this project. It's the best way I've found to analyze nullability of Java!

When using an algebraic data type pattern, checker performance degrades as the number of cases within the algebraic data type increases. I haven't let checker run long enough to complete the either5 or higher or emptyeither6 or higher cases.

An example project is available at https://github.com/hborders/checker-perf

$ ./gradlew :emptyeither2:assemble -DrocksSkipCheckerFramework=false
Configuration on demand is an incubating feature.

BUILD SUCCESSFUL in 4s

$ ./gradlew :either2:assemble -DrocksSkipCheckerFramework=false
Configuration on demand is an incubating feature.

BUILD SUCCESSFUL in 5s

$ ./gradlew :emptyeither3:assemble -DrocksSkipCheckerFramework=false
Configuration on demand is an incubating feature.

BUILD SUCCESSFUL in 8s

$ ./gradlew :either3:assemble -DrocksSkipCheckerFramework=false
Configuration on demand is an incubating feature.

BUILD SUCCESSFUL in 16s

$ ./gradlew :emptyeither4:assemble -DrocksSkipCheckerFramework=false
Configuration on demand is an incubating feature.

BUILD SUCCESSFUL in 47s

$ ./gradlew :either4:assemble -DrocksSkipCheckerFramework=false
Configuration on demand is an incubating feature.

BUILD SUCCESSFUL in 2m 20s

$ ./gradlew :emptyeither5:assemble -DrocksSkipCheckerFramework=false
Configuration on demand is an incubating feature.

BUILD SUCCESSFUL in 8m 17s

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked checker-perf project and run the provided Gradle assemble commands for the either and emptyeither cases. Compare checker timings as the number of algebraic-data-type cases increases, including the cases that complete. Done means the performance degradation is addressed and the reproduced builds complete without the reported escalation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.