Comment on Tiny Treeshaker: JavaScript tree shaking in 200 lines of codeparentComments−specialist5yAges ago, I dimly recall debug tracing the classloader to see what is actually used. Something about troubleshooting Spring or some such.Same strategy could be used for "tree shaking"?I'll ponder how unused functions might be identified (during runtime).−ygra5yWell, there are techniques. One of the hackier ones is probably the one described here: https://fgiesen.wordpress.com/2012/04/08/metaprogramming-for...
Comments
Ages ago, I dimly recall debug tracing the classloader to see what is actually used. Something about troubleshooting Spring or some such.
Same strategy could be used for "tree shaking"?
I'll ponder how unused functions might be identified (during runtime).
Well, there are techniques. One of the hackier ones is probably the one described here: https://fgiesen.wordpress.com/2012/04/08/metaprogramming-for...