Hey all!
I had a potentially really stupid idea, which may not even save that much space; I was wondering if it was at all sane to pass a compiled/partially compiled swift binary through an optimizer that would replace the relatively long mangled names swift uses with shorter names? I imagine the process resulting in names that would be similar to minified JavaScript.
To not break desymbolication, a new two phase process would have to be introduced which would first map from minified symbols back to swift mangled names (through a stored lookup table generated at optimization time), and then the usual swift demangling that we know and love.
Would this result in a smaller swift binary? I'd love to hear what people think, I'm happy to push this through the evolution process if it seems like a good idea. Swift is still used mostly for iOS apps, and binary size of iOS apps is still a topline metric for a number of different companies & apps - I'm sure they'd love to see smaller apps.