I have deleted all Code.ensure_loaded?/1
from runtime,
with Code.ensure_loaded?/1
my project took 67 millisecond after deleting it takes less than 300 microsecond. do not use this in runtime, especially when you have a loop
Very useful note.
My work:
- move some re-checks to compile time
- change my structure
- check some place with
function_exported?
- use try instead of. it is not recommended