4 ms·
I thought that's exactly what this article describes: "Similarly the linker can discard other exported methods, those that are only accessible through reflectio
by mseepgood 10y ago
I thought that's exactly what this article describes:
"Similarly the linker can discard other exported methods, those that are only accessible through reflection, if the corresponding reflection features are not used anywhere in the program. That change shrinks binaries by 5–20%."
- jjnoakes 10y agoCould be. I read that as discarding user-defined methods, not library-provided methods. Hopefully it is both.
- crawshaw 10y agoThe technique described in the blog post doesn't differentiate between user code and library code. It's all code. Any method the linker or the compiler can get rid of it does.