##// END OF EJS Templates
snapshot: refine candidate snapshot base upward...
Boris Feld -
r39539:5aef5afa default
parent child Browse files
Show More
@@ -658,6 +658,19 b' def _refinedgroups(revlog, p1, p2, cache'
658 if base == nullrev:
658 if base == nullrev:
659 break
659 break
660 good = yield (base,)
660 good = yield (base,)
661 # refine snapshot up
662 #
663 # XXX the _findsnapshots call can be expensive and is "duplicated" with
664 # the one done in `_rawgroups`. Once we start working on performance,
665 # we should make the two logics share this computation.
666 snapshots = collections.defaultdict(list)
667 _findsnapshots(revlog, snapshots, good + 1)
668 previous = None
669 while good != previous:
670 previous = good
671 children = tuple(sorted(c for c in snapshots[good]))
672 good = yield children
673
661 # we have found nothing
674 # we have found nothing
662 yield None
675 yield None
663
676
@@ -77,7 +77,7 b' repeatedly while some of it changes rare'
77
77
78
78
79 $ f -s .hg/store/data/*.d
79 $ f -s .hg/store/data/*.d
80 .hg/store/data/_s_p_a_r_s_e-_r_e_v_l_o_g-_t_e_s_t-_f_i_l_e.d: size=59303048
80 .hg/store/data/_s_p_a_r_s_e-_r_e_v_l_o_g-_t_e_s_t-_f_i_l_e.d: size=59302280
81 $ hg debugrevlog *
81 $ hg debugrevlog *
82 format : 1
82 format : 1
83 flags : generaldelta
83 flags : generaldelta
@@ -89,45 +89,45 b' repeatedly while some of it changes rare'
89 empty : 0 ( 0.00%)
89 empty : 0 ( 0.00%)
90 text : 0 (100.00%)
90 text : 0 (100.00%)
91 delta : 0 (100.00%)
91 delta : 0 (100.00%)
92 snapshot : 165 ( 3.30%)
92 snapshot : 168 ( 3.36%)
93 lvl-0 : 4 ( 0.08%)
93 lvl-0 : 4 ( 0.08%)
94 lvl-1 : 17 ( 0.34%)
94 lvl-1 : 18 ( 0.36%)
95 lvl-2 : 46 ( 0.92%)
95 lvl-2 : 39 ( 0.78%)
96 lvl-3 : 62 ( 1.24%)
96 lvl-3 : 54 ( 1.08%)
97 lvl-4 : 36 ( 0.72%)
97 lvl-4 : 53 ( 1.06%)
98 deltas : 4836 (96.70%)
98 deltas : 4833 (96.64%)
99 revision size : 59303048
99 revision size : 59302280
100 snapshot : 6105443 (10.30%)
100 snapshot : 5833942 ( 9.84%)
101 lvl-0 : 804187 ( 1.36%)
101 lvl-0 : 804068 ( 1.36%)
102 lvl-1 : 1476228 ( 2.49%)
102 lvl-1 : 1378470 ( 2.32%)
103 lvl-2 : 1752567 ( 2.96%)
103 lvl-2 : 1608138 ( 2.71%)
104 lvl-3 : 1461776 ( 2.46%)
104 lvl-3 : 1222158 ( 2.06%)
105 lvl-4 : 610685 ( 1.03%)
105 lvl-4 : 821108 ( 1.38%)
106 deltas : 53197605 (89.70%)
106 deltas : 53468338 (90.16%)
107
107
108 chunks : 5001
108 chunks : 5001
109 0x78 (x) : 5001 (100.00%)
109 0x78 (x) : 5001 (100.00%)
110 chunks size : 59303048
110 chunks size : 59302280
111 0x78 (x) : 59303048 (100.00%)
111 0x78 (x) : 59302280 (100.00%)
112
112
113 avg chain length : 17
113 avg chain length : 17
114 max chain length : 45
114 max chain length : 45
115 max chain reach : 26194433
115 max chain reach : 22744720
116 compression ratio : 29
116 compression ratio : 29
117
117
118 uncompressed data size (min/max/avg) : 346468 / 346472 / 346471
118 uncompressed data size (min/max/avg) : 346468 / 346472 / 346471
119 full revision size (min/max/avg) : 200992 / 201080 / 201046
119 full revision size (min/max/avg) : 200985 / 201050 / 201017
120 inter-snapshot size (min/max/avg) : 11610 / 172762 / 32927
120 inter-snapshot size (min/max/avg) : 11598 / 163304 / 30669
121 level-1 (min/max/avg) : 15619 / 172762 / 86836
121 level-1 (min/max/avg) : 15616 / 163304 / 76581
122 level-2 (min/max/avg) : 13055 / 85219 / 38099
122 level-2 (min/max/avg) : 11602 / 86428 / 41234
123 level-3 (min/max/avg) : 11610 / 42645 / 23577
123 level-3 (min/max/avg) : 11598 / 42390 / 22632
124 level-4 (min/max/avg) : 12928 / 20205 / 16963
124 level-4 (min/max/avg) : 11603 / 19649 / 15492
125 delta size (min/max/avg) : 10649 / 106863 / 11000
125 delta size (min/max/avg) : 10649 / 105465 / 11063
126
126
127 deltas against prev : 4162 (86.06%)
127 deltas against prev : 4167 (86.22%)
128 where prev = p1 : 4120 (98.99%)
128 where prev = p1 : 4129 (99.09%)
129 where prev = p2 : 0 ( 0.00%)
129 where prev = p2 : 0 ( 0.00%)
130 other : 42 ( 1.01%)
130 other : 38 ( 0.91%)
131 deltas against p1 : 653 (13.50%)
131 deltas against p1 : 643 (13.30%)
132 deltas against p2 : 21 ( 0.43%)
132 deltas against p2 : 23 ( 0.48%)
133 deltas against other : 0 ( 0.00%)
133 deltas against other : 0 ( 0.00%)
General Comments 0
You need to be logged in to leave comments. Login now