proofofconcept icon indicating copy to clipboard operation
proofofconcept copied to clipboard

cache the step validation results from Sympy

Open bhpayne opened this issue 4 years ago • 3 comments

Every page that includes the derivation steps takes a long time to load because Sympy is validating the steps.

The validation only needs to occur for new steps or steps that have been edited. Caching the results would improve latency

bhpayne avatar May 05 '20 13:05 bhpayne

Timing of two derivations with and without Sympy: https://physicsderivationgraph.blogspot.com/2020/05/timing-page-rendering-with-and-without.html

bhpayne avatar May 14 '20 21:05 bhpayne

idea: hash the strings associated with each step (input, output, feed, inf rule) and store the hash + validation result per step in the SQL database.

bhpayne avatar May 27 '20 01:05 bhpayne

ac1593857c8f6750037405a9feec365d638b5a0b

bhpayne avatar May 28 '20 14:05 bhpayne