smartcalc-tui icon indicating copy to clipboard operation
smartcalc-tui copied to clipboard

memoize smartcalc operation execution

Open superhawk610 opened this issue 2 years ago • 0 comments

Currently, SmartCalc::execute is run every 250ms, regardless of whether any input is available or if the input has changed since the last time it was run. Ideally, execute should only be called when there is new/changed input. Some amount of caching may also be desirable.

~~This is currently all done inline inside spawn, which also isn't ideal. It should probably be moved into its own module.~~ Done in #9.

superhawk610 avatar Feb 19 '22 21:02 superhawk610