quark.jar may not be the most famous tool in the Java ecosystem, but for the discerning developer who values insight over blind optimization, it is indispensable. Download it today and look into your bytecode like never before. Have a tip or a bug report? Contribute to the Quark project on GitHub or check the official documentation.
[INFO] Scanning my-application.jar (2.3 MB) [INFO] Total classes: 1,245 [INFO] Total methods: 8,902 [INFO] Dead methods detected: 312 (3.5%) [INFO] Duplicate string literals: 1,023 occurrences This gives you a baseline. A high dead-method percentage (>5%) makes this a good candidate for squashing. This is quark.jar 's killer feature. Generate a PNG flowchart of a specific method to understand complex legacy code. quark.jar
But what exactly is quark.jar ? How do you use it, and why should you care? Contribute to the Quark project on GitHub or
# quark.properties example quark.squash.keep-resource = META-INF/services/* quark.squash.remove-debug = true quark.squash.max-method-size = 200 quark.flow.show-stack-map = false Apply it: This is quark