dimo414 / bash-cache

Transparent caching layer for bash functions; particularly useful for functions invoked as part of your prompt.
GNU General Public License v3.0
73 stars 4 forks source link

Remove unnecessary command substitutions #21

Closed dimo414 closed 3 years ago

dimo414 commented 4 years ago

There are likely some command substitutions that incur unnecessary overhead, especially on the critical path. Similar to https://github.com/dimo414/ProfileGem/commit/d6510ded + https://github.com/dimo414/prompt.gem/commit/9764cdb3 we can probably swap some of these substitutions with printf -v-style variable assignments and see some speedups.