JakeWharton / JakeWharton/diffuse
Show `ENTRIES` block
- Dominant language
- Kotlin
- Stars
- 2.2k
- Forks
- 118
- Avg merge
- 2h 18m
- Merged PRs (30d)
- 19
Description
R8 shrinks all dirs in JARs, it would be great to have a block to show entry count diffs. Like:
```
OLD: ktfmt-0.65-SNAPSHOT-with-dependencies-before.jar
NEW: ktfmt-0.65-SNAPSHOT-with-dependencies-patched.jar
│ compressed │ uncompressed
├───────────┬────────────┬─────────────┼───────────┬───────────┬────────
JAR │ old │ new │ diff │ old │ new │ diff
───────┼───────────┼────────────┼─────────────┼───────────┼───────────┼────────
class │ 14.12 MiB │ 14.12 MiB │ +17 B │ 28 MiB │ 28 MiB │ +164 B
other │ 826.3 KiB │ 716.62 KiB │ -109.69 KiB │ 1.94 MiB │ 1.94 MiB │ 0 B
───────┼───────────┼────────────┼─────────────┼───────────┼───────────┼────────
total │ 14.93 MiB │ 14.82 MiB │ -109.67 KiB │ 29.94 MiB │ 29.94 MiB │ +164 B
ENTRIES │ old │ new │ diff
─────────┼───────┼───────┼──────────────────
files │ 10357 │ 10357 │ 0 (+0 -0)
dirs │ 628 │ 0 │ -628 (+0 -628)
─────────┼───────┼───────┼──────────────────
total │ 10985 │ 10357 │ -628 (+0 -628)
CLASSES │ old │ new │ diff
─────────┼───────┼───────┼───────────
classes │ 10230 │ 10230 │ 0 (+0 -0)
methods │ 70944 │ 70944 │ 0 (+0 -0)
fields │ 22714 │ 22714 │ 0 (+0 -0)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
No files or tests are named. Start by tracing the existing JAR size and CLASSES output blocks, then identify where entry counts can be collected and rendered. Done means the CLI shows an ENTRIES block with old, new, diff, and file/directory/total counts like the requested example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100