Browse Source

mpp_split: tweak split parameters

Increases STARTING_CONFIGS to sample more starting configurations.
Reduces CANDIDATES_PER_LEVEL to reduce computational effort.
Increases REDISTRIBUTE.

The time it takes for a typical suggest_split call is about 2 msec a
desktop machine.
patch-4
bitromortac 4 years ago
parent
commit
bf87169469
No known key found for this signature in database GPG Key ID: 1965063FC13BEBE2
  1. 6
      electrum/mpp_split.py

6
electrum/mpp_split.py

@ -12,9 +12,9 @@ REDISTRIBUTION_FRACTION = 10
SPLIT_FRACTION = 10
# these parameters affect the computational work in the probabilistic algorithm
STARTING_CONFIGS = 30
CANDIDATES_PER_LEVEL = 20
REDISTRIBUTE = 5
STARTING_CONFIGS = 50
CANDIDATES_PER_LEVEL = 10
REDISTRIBUTE = 10
def unique_hierarchy(hierarchy: Dict[int, List[Dict[bytes, int]]]) -> Dict[int, List[Dict[bytes, int]]]:

Loading…
Cancel
Save