mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-23 06:19:38 +08:00
Document modules also improve stacktraces, closes #2485
This commit is contained in:
parent
cc92a6d03b
commit
a759c9d56a
1 changed files with 5 additions and 2 deletions
|
@ -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`
|
itself is evaluated, the one million iterations of `Enum.reduce/3`
|
||||||
happen inside a module, which is compiled.
|
happen inside a module, which is compiled.
|
||||||
|
|
||||||
If a notebook is performing slower than expected, consider moving
|
Another benefit is compiling code is that exceptions often have
|
||||||
the bulk of the execution to inside modules.
|
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
|
## Running tests
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue