Skip to content

Support diffing directory entry sizes - #548

Open
Goooler wants to merge 1 commit into
JakeWharton:trunkfrom
Goooler:dir-size-diff
Open

Support diffing directory entry sizes#548
Goooler wants to merge 1 commit into
JakeWharton:trunkfrom
Goooler:dir-size-diff

Conversation

@Goooler

@Goooler Goooler commented Aug 27, 2026

Copy link
Copy Markdown
Contributor
OLD: ktfmt-old.jar
NEW: ktfmt-patched.jar

       │              compressed               │          uncompressed          
       ├────────────┬────────────┬─────────────┼───────────┬───────────┬────────
 JAR   │ old        │ new        │ diff        │ old       │ new       │ diff   
───────┼────────────┼────────────┼─────────────┼───────────┼───────────┼────────
 class │  14.53 MiB │  14.53 MiB │       +17 B │ 28.48 MiB │ 28.48 MiB │ +209 B 
   dir │ 109.69 KiB │        0 B │ -109.69 KiB │       0 B │       0 B │    0 B 
 other │ 716.62 KiB │ 716.62 KiB │         0 B │  1.94 MiB │  1.94 MiB │    0 B 
───────┼────────────┼────────────┼─────────────┼───────────┼───────────┼────────
 total │  15.33 MiB │  15.23 MiB │ -109.67 KiB │ 30.42 MiB │ 30.42 MiB │ +209 B 

 CLASSES │ old   │ new   │ diff      
─────────┼───────┼───────┼───────────
 classes │ 10230 │ 10230 │ 0 (+0 -0) 
 methods │ 70942 │ 70942 │ 0 (+0 -0) 
  fields │ 22714 │ 22714 │ 0 (+0 -0) 

jar.diff.txt

Closes #547.

```
OLD: ktfmt-old.jar
NEW: ktfmt-patched.jar

       │              compressed               │          uncompressed
       ├────────────┬────────────┬─────────────┼───────────┬───────────┬────────
 JAR   │ old        │ new        │ diff        │ old       │ new       │ diff
───────┼────────────┼────────────┼─────────────┼───────────┼───────────┼────────
 class │  14.53 MiB │  14.53 MiB │       +17 B │ 28.48 MiB │ 28.48 MiB │ +209 B
   dir │ 109.69 KiB │        0 B │ -109.69 KiB │       0 B │       0 B │    0 B
 other │ 716.62 KiB │ 716.62 KiB │         0 B │  1.94 MiB │  1.94 MiB │    0 B
───────┼────────────┼────────────┼─────────────┼───────────┼───────────┼────────
 total │  15.33 MiB │  15.23 MiB │ -109.67 KiB │ 30.42 MiB │ 30.42 MiB │ +209 B

 CLASSES │ old   │ new   │ diff
─────────┼───────┼───────┼───────────
 classes │ 10230 │ 10230 │ 0 (+0 -0)
 methods │ 70942 │ 70942 │ 0 (+0 -0)
  fields │ 22714 │ 22714 │ 0 (+0 -0)
```
import me.saket.bytesize.binaryBytes

class ArchiveFiles internal constructor(private val files: Map<String, ArchiveFile>) :
class ArchiveFiles(private val files: Map<String, ArchiveFile>) :

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exposed to ArchiveFilesDiffTest. Would like to address a making-friends fix in a follow-up.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show ENTRIES block

1 participant