zalo / CascadeStudio

A Full Live-Scripted CAD Kernel in the Browser
https://zalo.github.io/CascadeStudio/
MIT License
1.01k stars 126 forks source link

[FEAT] Implement Automatic Caching #7

Closed zalo closed 4 years ago

zalo commented 4 years ago

Automatic Caching saves the intermediate shapes from Standard Library Functions in an attempt to speed up computation.

Each Standard Library call saves its output to the cache, keyed by a hash of its arguments. That call will then skip its heavy computation if it detects there is already a matching shape in the cache.

This is a bit hacky at the moment; not well tested, etc.

vercel[bot] commented 4 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/zalo/cascade-studio/aqlgqjxj9
✅ Preview: https://cascade-studio-git-feat-cache.zalo.vercel.app

zalo commented 4 years ago

This PR is subsumed by #8