Component-Aware Optimizations (Tracking)
esoterra opened this issue · comments
I'm curious if there's an optimization pass we could make to eliminate lifts and lowers when moving between components where they would otherwise be a no-op, e.g. rust to rust string lifting/lowering.
My best guess is that to do that, we would need to
- perform component/instance inlining to create a new component using each component's modules and the core adapter module
- then perform module/instance inlining to combine the modules together,
- then it might be possible for module optimizations to eliminate redundant lift/lower logic in the fused-inlined-adapters.
It's definitely an interesting goal and worthy of a discussion topic and/or issue imo.