[Feature] Reduce the use of subshells in our language
- Lenguaje dominante
- Rust
- Estrellas
- 5.2k
- Forks
- 145
- Merge medio
- 5 d 3 h
- PR fusionados (30 d)
- 7
Descripción
**Is your feature request related to a problem? Please describe.**
Subshells reduce the script performance dramatically. This is because they have to create a fork and duplicate a context, the script is compiled with. For this very reason avoiding them can be beneficial
**Describe the solution you'd like**
Reduce the use of subshells for things that don't need to be handled by a subshell call:
- [ ] Range operator could use brace expansion `{1..10}` or `eval "{1..$var}"` for expansions with variable bounds.
- [ ] Ternary operator could be just an `if..else` statement that just assigns variable in each branch
- [ ] `Text` comparison could be just an `if..else` statement that just assigns variable in each branch
- [ ]
**Additional context**
#867
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.