HaxeFoundation / HaxeFoundation/haxe
Reduce early inlining
Open
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
Fallout from #8939: Inlining during typing is a problem in many display situations. We should try to avoid inlining during typing and instead do it during post-processing.
We can still do it before saving the class state so that we don't have to repeat it on each server build. This way, the normal AST version is in `cf_expr_unoptimized` and the one with applied inline calls is in `cf_expr` after `cl_restore()` has been called.
This requires identifying in which cases early inline is a hard requirement, e.g. "constant expression required" situations.
Contributor guide
Assessment
This issue has not been assessed yet.