Comment

Comment by bloppe

That bookkeeping is a drop in the bucket compared to all the bookkeeping rustc does. In fact, it probably already exists in some form.

When you're compiling a library, anything that's exported is a possible entrypoint for the purpose of dead code elimination. When compiling a binary, the only entrypoint is the `main` function. Apart from that, the dead code elimination algorithm is basically the same.

parent bloppe 24 days ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton