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
74 stars 4 forks source link

Reduce the amount of eval-ed code #10

Closed dimo414 closed 4 years ago

dimo414 commented 6 years ago

Original report by Michael Diamond (Bitbucket: dimo414).


Using a placeholder function or some other template-based approach would reduce the amount of code that needs to be eval-ed for each dynamic invocation. Example from @zbentley: https://gist.github.com/zbentley/3832f31d33fb476c89bd2660b086b148