reverbrain / eblob

Eblob is an append-only low-level IO library, which saves data in blob files. Created as low-level backend for elliptics
GNU Lesser General Public License v3.0
104 stars 29 forks source link

Removed blobs iteration in a number of thread, use only one. #86

Closed shaitan closed 10 years ago

SaveTheRbtz commented 10 years ago

As much as I like code simplifications, but wouldn't it make startup and sort/defrag much slower?

bioothod commented 10 years ago

Iteration over eblob (not startup but generic iteration) has the same speed when we iterate using 1 or 16 threads.

Multiple threads were added for cases when iteration callback performs so slow operations, that is is comparable with disk read. There are no such operations in our practice, so let's simplificate.