usefulness / webp-imageio

Java ImageIO WebP support (includes ARM chips support)
Apache License 2.0
35 stars 5 forks source link

Restore old cleanup behavior #141

Closed mateuszkwiecinski closed 1 year ago

mateuszkwiecinski commented 1 year ago

https://github.com/usefulness/webp-imageio/issues/140

github-actions[bot] commented 1 year ago

Jar size:

Jar size change: -1.2KiB (3.1MiB -> 3.1MiB)

Diffuse output:

OLD: diffuse-source-file
NEW: pull-request-artifact.jar

       │          compressed           │           uncompressed           
       ├──────────┬─────────┬──────────┼───────────┬───────────┬──────────
 JAR   │ old      │ new     │ diff     │ old       │ new       │ diff     
───────┼──────────┼─────────┼──────────┼───────────┼───────────┼──────────
 class │ 56.2 KiB │  55 KiB │ -1.2 KiB │ 119.3 KiB │ 117.4 KiB │ -1.9 KiB 
 other │    3 MiB │   3 MiB │      0 B │   6.4 MiB │   6.4 MiB │      0 B 
───────┼──────────┼─────────┼──────────┼───────────┼───────────┼──────────
 total │  3.1 MiB │ 3.1 MiB │ -1.2 KiB │   6.5 MiB │   6.5 MiB │ -1.9 KiB 

 CLASSES │ old │ new │ diff       
─────────┼─────┼─────┼────────────
 classes │  25 │  24 │ -1 (+0 -1) 
 methods │ 634 │ 629 │ -5 (+3 -8) 
  fields │  68 │  67 │ -1 (+0 -1)
JAR ``` compressed │ uncompressed │ ─────────┬──────────┼──────────┬──────────┤ size │ diff │ size │ diff │ path ─────────┼──────────┼──────────┼──────────┼───────────────────────────────────────────────────────────────── │ -1.4 KiB │ │ -2.2 KiB │ - com/luciad/imageio/webp/internal/NativeLoader_cleanup_1.class 6.1 KiB │ +145 B │ 13 KiB │ +358 B │ ∆ com/luciad/imageio/webp/internal/NativeLoader.class 1.7 KiB │ +1 B │ 3.1 KiB │ 0 B │ ∆ com/luciad/imageio/webp/internal/NativeLoader_version_2.class ─────────┼──────────┼──────────┼──────────┼───────────────────────────────────────────────────────────────── 7.9 KiB │ -1.2 KiB │ 16.1 KiB │ -1.9 KiB │ (total) ```
CLASSES ``` CLASSES: old │ new │ diff ─────┼─────┼──────────── 25 │ 24 │ -1 (+0 -1) - com.luciad.imageio.webp.internal.NativeLoader_cleanup_1 METHODS: old │ new │ diff ─────┼─────┼──────────── 634 │ 629 │ -5 (+3 -8) + com.luciad.imageio.webp.internal.NativeLoader cleanup_lambda_0(File, String) → boolean + java.io.File listFiles(FilenameFilter) → File[] + java.lang.invoke.LambdaMetafactory metafactory(MethodHandles_Lookup, String, MethodType, MethodType, MethodHandle, MethodType) → CallSite - com.luciad.imageio.webp.internal.NativeLoader_cleanup_1 () - com.luciad.imageio.webp.internal.NativeLoader_cleanup_1 () - com.luciad.imageio.webp.internal.NativeLoader_cleanup_1 invoke(File) → Boolean - com.luciad.imageio.webp.internal.NativeLoader_cleanup_1 invoke(Object) → Object - java.io.File getName() → String - kotlin.io.FilesKt walkBottomUp(File) → FileTreeWalk - kotlin.sequences.Sequence iterator() → Iterator - kotlin.sequences.SequencesKt filter(Sequence, Function1) → Sequence FIELDS: old │ new │ diff ─────┼─────┼──────────── 68 │ 67 │ -1 (+0 -1) - com.luciad.imageio.webp.internal.NativeLoader_cleanup_1 INSTANCE: NativeLoader_cleanup_1 ```