Remove bitswap automatic cache link system production
Closed this issue · 2 comments
In reviewing #287, I realized we pass a tempdir to Lassie, I believe only to create a preload store for bitswap on demand.
I think we should move away from doing this, taking the position, if you want preloading, supply a preload cache. otherwise, performance degrades to single block traversal.
The primary reason for this is I'm generally interested keep all interactions with the filesystem outside of Lassie, handing responsibility to the person who creates the linksystem.
cc: @rvagg for thoughts.
Yeah, my thoughts went from looking at code to attempting this in #290, not quite there yet because it's not quite so straightforward because now we have to deal with the possibility of not having a preloader in the bitswap retriever—we've been able to assume always having one (either supplied or made in the retriever).