clarinet
clarinet copied to clipboard
Cache deployment on LSP init
The generate_default_deployment can take quite a long time and currently runs every time a clarity file is opened or saved.
- When reading the manifest,
compute_addressesis called for every account in Devnet.toml (10 by default) and can takes about 25ms per address. The computed address could be cached get_boot_contracts_astsbuilds thepox_astandbns_ast. The parser v2 is ~10x faster than v1, but some precious ms could be saved here as well
When config files are changed (Clarinet.toml or Devnet.toml), the default deployment should be recomputed
Is this issue something that we'd like to address for the incoming release @hugocaillard?
It could come in a future release. I'd like to check if the recent slow-downs we had could come from that