mirror of https://github.com/digint/btrbk
btrbk: get_related_readonly_nodes: vastly increase abort_distance
It's not uncommon to have a large intact parent-chain on targets (e.g. target_preserve_min=all). If this is the case, performance drops a bit on "btrbk archive". Note that we could limit the search depth in get_best_parent() for some performance improvements, as this only affects extra clones.pull/286/head
parent
37b0bd3477
commit
b62bb3b1a8
2
btrbk
2
btrbk
|
@ -3139,7 +3139,7 @@ sub get_related_readonly_nodes($;@)
|
|||
my $parent_uuid_hash = $vol->{node}{TREE_ROOT}{PARENT_UUID_HASH};
|
||||
my $node = $vol->{node};
|
||||
my $uuid = $node->{uuid};
|
||||
my $abort_distance = 256;
|
||||
my $abort_distance = 4096;
|
||||
|
||||
# climb up parent chain
|
||||
my $distance = 0; # parent distance
|
||||
|
|
Loading…
Reference in New Issue