mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-07 03:20:22 -04:00
chore: more reasonable memory limits to keep example code simple
This commit is contained in:
parent
6a9d29ed24
commit
df8db3880a
@ -55,7 +55,7 @@ enum class cache_tidy_strategy { NONE, EXPIRY_TIME, BLOCK_SWAPPED_OUT };
|
||||
enum class filesystem_check_level { CHECKSUM, INTEGRITY, FULL };
|
||||
|
||||
struct block_cache_options {
|
||||
size_t max_bytes{0};
|
||||
size_t max_bytes{static_cast<size_t>(512) << 20};
|
||||
size_t num_workers{0};
|
||||
double decompress_ratio{1.0};
|
||||
bool mm_release{true};
|
||||
|
@ -43,7 +43,7 @@ class filesystem_v2;
|
||||
namespace utility {
|
||||
|
||||
struct filesystem_extractor_options {
|
||||
size_t max_queued_bytes{4096};
|
||||
size_t max_queued_bytes{static_cast<size_t>(512) << 20};
|
||||
bool continue_on_error{false};
|
||||
std::function<void(std::string_view, uint64_t, uint64_t)> progress;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user