scala-native icon indicating copy to clipboard operation
scala-native copied to clipboard

Lots of repeated strings (package and class names) on SN binaries

Open JD557 opened this issue 8 months ago • 0 comments

I was examining some SN binaries created with release-size with GNU strings, and was surprised at the amount of times some strings are repeated, even after stripping the binary.

One of the worst offenders seems to be toStringL16java.lang.StringEO, but there are other culprits, like common root package names (java., scala., scalanative....).

I wonder if some of those strings could be written once and reused in all (or at least some) places. That could make some binaries much smaller.

JD557 avatar Apr 19 '25 10:04 JD557