Commit d3454fe7 authored by Eric Frias's avatar Eric Frias Committed by Dan Notestein
Browse files

Added new compression_dictionaries submodule

parent 97886bd0
......@@ -16,3 +16,6 @@
[submodule "libraries/vendor/zstd"]
path = libraries/vendor/zstd
url = https://github.com/facebook/zstd.git
[submodule "libraries/chain/compression_dictionaries"]
path = libraries/chain/compression_dictionaries
url = ../compression_dictionaries.git
......@@ -55,8 +55,8 @@ const decompressed_raw_dictionary_info& get_decompressed_raw_dictionary(uint8_t
if (ZSTD_isError(uncompressed_dictionary_size))
FC_THROW("Error decompressing dictionary ${dictionary_number} with zstd", (dictionary_number));
ilog("Decompressing dictionary number ${dictionary_number}, expanded ${compressed_size} to ${uncompressed_dictionary_size}",
(dictionary_number)("compressed_size", raw_iter->second.size)(uncompressed_dictionary_size));
// ilog("Decompressing dictionary number ${dictionary_number}, expanded ${compressed_size} to ${uncompressed_dictionary_size}",
// (dictionary_number)("compressed_size", raw_iter->second.size)(uncompressed_dictionary_size));
// copy into a memory buffer of exactly the right size
std::unique_ptr<char[]> resized_buffer(new char[uncompressed_dictionary_size]);
......
Subproject commit 70128f45dc1dfbafa2eadb18b24308b61b86f37c
......@@ -755,7 +755,7 @@ void chain_plugin::set_program_options(options_description& cli, options_descrip
("checkpoint,c", bpo::value<vector<string>>()->composing(), "Pairs of [BLOCK_NUM,BLOCK_ID] that should be enforced as checkpoints.")
("flush-state-interval", bpo::value<uint32_t>(),
"flush shared memory changes to disk every N blocks")
("enable-block-log-compression", bpo::bool_switch()->default_value(false), "Compress blocks using zstd as they're added to the block log" )
("enable-block-log-compression", boost::program_options::value<bool>()->default_value(false), "Compress blocks using zstd as they're added to the block log" )
("block-log-compression-level", bpo::value<int>()->default_value(15), "Block log zstd compression level 0 (fast, low compression) - 22 (slow, high compression)" )
;
cli.add_options()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment