nshiab / simple-data-analysis

Easy-to-use and high-performance JavaScript library for data analysis. Works with tabular and geospatial data.
https://nshiab.github.io/simple-data-analysis/
MIT License
195 stars 11 forks source link

a cache logic #542

Open nshiab opened 1 week ago

nshiab commented 1 week ago

Maybe something like:

await table.cache(async () => {
    // if stuff1.parquet exists, just load it.
    // otherwise, run this function
}, "./temp/stuff1.parquet)
nshiab commented 1 week ago

need to check in the function is different too