Cache math expressions

This implements an LRU cache of recently seen math expressions. When
executing math inside loops and the like this can provide a 33% decrease
in the time to execute the `math` command.
This commit is contained in:
Kurtis Rader
2017-08-24 11:29:07 -07:00
parent 8fe1108cec
commit 56d9134534
4 changed files with 70 additions and 21 deletions

View File

@@ -74,7 +74,6 @@ Running fish requires:
`uniq`, `wc`, and `whoami`
* a number of common UNIX utilities:
* `awk`
* `bc`, the "basic calculator" program
* `find`
* `grep`
* `hostname`