cadence
cadence copied to clipboard
[Compiler] Optimize conversion between static and sema types
Avoid conversions where possible. Improve caching.
Possible approaches:
- [ ] Re-use static-type conversion results from compiler/ previous executions. See https://github.com/onflow/cadence/pull/4054#discussion_r2172847539
- [ ] #3691
- [ ] Avoid static to sema type conversion when boxing (ConvertAndBox) [moved from https://github.com/onflow/cadence/issues/3804]
Related: https://github.com/onflow/cadence/pull/4054 (particularly https://github.com/onflow/cadence/pull/4054#discussion_r2172847539)