Published onNovember 16, 2024Keeping it small: helping the compiler to remove unused code in OCamlocamldead-code-eliminationtree-shakingunused-codeOCaml has some facilities for eliminating unused code - I explore what it can do, and how you structure your code to take advantage of it