Optimize codegen: eliminate subshell forks, inline dict/fs methods
- Comparisons set __CT_RET directly instead of $() subshell fork
- Logical NOT (!) inlined same way
- fs.exists() inlined to [[ -e ]] in conditions
- fs.read uses $(<file) instead of $(cat), fs.write/append use printf
- fs.exists/remove/mkdir avoid unnecessary $() wrapping
- Dict .get()/.has()/.len() inlined for local dict vars
- __ct_print simplified: removed unnecessary local variable
- String concat ..= uses native += append
- Skip __CT_RET self-assignment in return statements
Showing
Please
register
or
sign in
to comment