61de3f9287
The Rust implementation is multithreaded, performs better in general and does custom compression of btree nodes to achieve much better compression ratios. unpack also checksums expanded metadata to validate it. Format version has jumped to 3, no backwards compatibility, but I think that's ok since we never made a release that contained the C++ version of these tools. Benchmarks ========== On an 8 core, 16 hyperthread machine. metadata 1G, full: Pack size pack time unpack time ------------------------------------------------------ C++ 193M 50.3s 6.9s (no verify) Rust 70M 1.4s 1.8s (verify) metadata 16G, sparse: Pack size pack time unpack time ------------------------------------------------------ C++ 21M 68s 1s (no verify) Rust 4M 8.6s 0.5s (verify) |
||
---|---|---|
.. | ||
cache_stream.cc | ||
cache_stream.h | ||
chunk_stream.cc | ||
chunk_stream.h | ||
commands.cc | ||
commands.h | ||
create_xml_data | ||
device_tree.cc | ||
device_tree.h | ||
emitter.h | ||
fixed_chunk_stream.cc | ||
fixed_chunk_stream.h | ||
human_readable_format.cc | ||
human_readable_format.h | ||
main.cc | ||
mapping_tree.cc | ||
mapping_tree.h | ||
metadata_checker.cc | ||
metadata_checker.h | ||
metadata_counter.cc | ||
metadata_counter.h | ||
metadata_dumper.cc | ||
metadata_dumper.h | ||
metadata.cc | ||
metadata.h | ||
override_emitter.cc | ||
override_emitter.h | ||
pool_stream.cc | ||
pool_stream.h | ||
restore_emitter.cc | ||
restore_emitter.h | ||
rmap_visitor.cc | ||
rmap_visitor.h | ||
shared_library_emitter.cc | ||
shared_library_emitter.h | ||
static_library_emitter.cc | ||
superblock.cc | ||
superblock.h | ||
thin_check.cc | ||
thin_debug.cc | ||
thin_delta.cc | ||
thin_dump.cc | ||
thin_generate_metadata.cc | ||
thin_journal_check.cc | ||
thin_journal.cc | ||
thin_journal.h | ||
thin_ll_dump.cc | ||
thin_ll_restore.cc | ||
thin_ls.cc | ||
thin_metadata_size.cc | ||
thin_metadata_size.rb | ||
thin_pool.cc | ||
thin_pool.h | ||
thin_repair.cc | ||
thin_restore.cc | ||
thin_rmap.cc | ||
thin_scan.cc | ||
thin_show_duplicates.cc | ||
thin_show_metadata.cc | ||
thin_trim.cc | ||
variable_chunk_stream.cc | ||
variable_chunk_stream.h | ||
xml_format.cc | ||
xml_format.h |