Consensus.getDirectoryStream() could save the consensus in a local "tor[-research-framework] data" directory, and then check for existing files before looking them up over the network.
This would reduce the load on the authorities, which are consulted at least once for each (often short) run.
Issues:
- Filesystem Access / Java Sandbox
- Selection of [default] shared directory: access/security, persistence, storage limits
- /tmp won't do in many cases:
- Windows users would need platform agnostic path
- OS X sandbox provides per-process TMPDIRs (not shared)
- Handling of stale documents
Gareth, did you have a preferred strategy for this?
Consensus.getDirectoryStream() could save the consensus in a local "tor[-research-framework] data" directory, and then check for existing files before looking them up over the network.
This would reduce the load on the authorities, which are consulted at least once for each (often short) run.
Issues:
Gareth, did you have a preferred strategy for this?