[Feature] Reduce the use of subshells in our language
- Linguagem predominante
- Rust
- Estrelas
- 5.2k
- Forks
- 145
- Merge médio
- 5d 3h
- PRs com merge (30d)
- 7
Descrição
**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
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.