Open mistakia opened 4 years ago
Excited about this if it turns out to work! Would you mind though making this a draft PR until it's ready?
How are you feeling about this one @mistakia ? :)
Feeling like I need to get back in the game! I plan on coming back to this in the not so distant future.
Ok, I'll leave it open then :+1:
@mistakia the not too distant future is upon us :D hope you are happy + healthy in these trying times.
If you want to hop back in I can totally support you. Did you see I finally merged #307 ?
Quick status update of what I think is left. Merge the following into ipfs-log master:
After these two I can dig deeper in the benchmarks to make improvements (i.e. analyze various LRU libs)
log.spec
tests
Description
Currently, all entries (and all the data in it) are kept in memory. The goal of this PR is to make this optional in order to improve load times and performance on memory-limited environments when interacting with larger/longer log sets.
Related: https://github.com/orbitdb/ipfs-log/issues/136, https://github.com/orbitdb/ipfs-log/issues/203, https://github.com/orbitdb/ipfs-log/pull/239
Breaking Changes
The following getters and methods become async / return promises.
log.values
log.tails
log.tailHashes
log.get()
log.traverse()
log.iterator()
log.toString()
log.toSnapshot()
Benchmarking
Before wip
After wip
Tradeoffs
wip
TODO