Profiling and fixes: initialize dummy_environment only when needed
When we run ligo --help
(or similar), the dummy_environment
from proto-alpha-utils
is initialized anyway. This means doing various slow operations, that take a while and make ligo
slow no matter what we ask it to do (e.g. it takes 3min. to do ligo --help
in an M1).
This MR:
- Evaluates
dummy_environment
only if needed (and only once).
Note that operations such as Michelson-type-checking a compiled contract or compiling an expression (which includes running Michelson code) need to initialize dummy_environment
.
-
has a changelog entry
Edited by E. Rivas