by avbor · 5y ago · 0 comments
To apply this to python is interesting - if you were creating a packaged version, I could see "compiling" the code to a separate package with only the required imports.
Those are both dead code elimination. Webpack even says:
> Tree shaking is a term commonly used in the JavaScript context for dead-code elimination.