Document modules also improve stacktraces, closes #2485

This commit is contained in:
José Valim 2024-02-15 11:17:20 +01:00
parent cc92a6d03b
commit a759c9d56a

View file

@ -356,8 +356,11 @@ than the previous `Enum.reduce/3` call. While the call `Bench.sum()`
itself is evaluated, the one million iterations of `Enum.reduce/3`
happen inside a module, which is compiled.
If a notebook is performing slower than expected, consider moving
the bulk of the execution to inside modules.
Another benefit is compiling code is that exceptions often have
better stacktraces and error messages. Therefore, if a notebook is
performing slower than expected or you need more information in case
of failures, consider moving the bulk of the execution to inside
modules.
## Running tests