mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-22 22:05:03 +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`
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue