nathanfarlow / PineappleCAS

A generic computer algebra system targeted for the TI-84+ CE calculators
MIT License
178 stars 8 forks source link

Identity Caching #7

Closed nathanfarlow closed 5 years ago

nathanfarlow commented 5 years ago

So I'm just going to leave this here for after I finish the engine and start working on the calculator app. We have around 84 identities so far. They consist of two expressions as strings. Each of these are compiled once into their corresponding ast on their first use. (All of them are used at the moment). On a computer, this process is less than a second. However, on the calculator, this process takes up ~95% of the entire computing time. We need to either give options on which identities should be used or find some way to compile them and then store the ast binary to an appvar and load it next time.

nathanfarlow commented 5 years ago

I decided to go with the route that we give the user options on which identities to compile and execute.

simplify