]> Sergey Matveev's repositories - btrtrc.git/commit
data/blob: Change store eviction to LRU, from random replacement
authorMatt Joiner <anacrolix@gmail.com>
Wed, 18 Mar 2015 07:12:46 +0000 (18:12 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 18 Mar 2015 07:12:46 +0000 (18:12 +1100)
commit8d58fc28f6f46bba670d159bbba98c7fc8457bf9
tree0d3b2e021c22a1fe84ed421277b63643446a1746
parent0f7c4c5bda4616d55f62fa0c64da28e9272ef0ce
data/blob: Change store eviction to LRU, from random replacement

It works *much* better for torrenting with a readahead window. When we want to
avoid downloading, we want to avoid downloading lots of dispersed pieces.
data/blob/atime_darwin.go [new file with mode: 0644]
data/blob/atime_linux.go [new file with mode: 0644]
data/blob/store.go