UrbanAnalyst / dodgr

Distances on Directed Graphs in R
https://urbananalyst.github.io/dodgr/
127 stars 16 forks source link

Use fst for all caching functions #188

Closed mpadge closed 1 year ago

mpadge commented 1 year ago

Instead of current serialisation with write/readRDS.

mpadge commented 1 year ago

The main object saved is the contracted graph, but that is saved as a list of items, so can't be directly saved with fst anyway. This would require restructuring that object to save the individual components, but even then not all of them are data.frame objects anyway, so there'd still have to be a mix of save/readRDS and fst. Current use of RDS is not a significant efficiency bottleneck anyway, so leaving for the moment.