##// END OF EJS Templates
setdiscovery: always add exponential sample to the heads...
Pierre-Yves David -
r23813:932f814b default
parent child Browse files
Show More
@@ -105,10 +105,7 b' def _takequicksample(dag, nodes, size):'
105 105 return sample
106 106
107 107 def _takefullsample(dag, nodes, size):
108 always = dag.headsetofconnecteds(nodes)
109 if size <= len(always):
110 return always
111 sample = always
108 sample = always = dag.headsetofconnecteds(nodes)
112 109 # update from heads
113 110 _updatesample(dag, nodes, sample, always)
114 111 # update from roots
@@ -317,17 +317,14 b' One with >200 heads, which used to use u'
317 317 query 3; still undecided: 1140, sample size is: 200
318 318 sampling from both directions
319 319 searching: 4 queries
320 query 4; still undecided: 940, sample size is: 200
320 query 4; still undecided: 592, sample size is: 200
321 321 sampling from both directions
322 322 searching: 5 queries
323 query 5; still undecided: 740, sample size is: 200
323 query 5; still undecided: 292, sample size is: 200
324 324 sampling from both directions
325 325 searching: 6 queries
326 query 6; still undecided: 540, sample size is: 200
327 sampling from both directions
328 searching: 7 queries
329 query 7; still undecided: 46, sample size is: 46
330 7 total queries
326 query 6; still undecided: 51, sample size is: 51
327 6 total queries
331 328 common heads: 3ee37d65064a
332 329
333 330 Test actual protocol when pulling one new head in addition to common heads
General Comments 0
You need to be logged in to leave comments. Login now