Show More
@@ -658,6 +658,19 b' def _refinedgroups(revlog, p1, p2, cache' | |||
|
658 | 658 | if base == nullrev: |
|
659 | 659 | break |
|
660 | 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 | 674 | # we have found nothing |
|
662 | 675 | yield None |
|
663 | 676 |
@@ -77,7 +77,7 b' repeatedly while some of it changes rare' | |||
|
77 | 77 | |
|
78 | 78 | |
|
79 | 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=5930 |
|
|
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 | 81 | $ hg debugrevlog * |
|
82 | 82 | format : 1 |
|
83 | 83 | flags : generaldelta |
@@ -89,45 +89,45 b' repeatedly while some of it changes rare' | |||
|
89 | 89 | empty : 0 ( 0.00%) |
|
90 | 90 | text : 0 (100.00%) |
|
91 | 91 | delta : 0 (100.00%) |
|
92 |
snapshot : 16 |
|
|
92 | snapshot : 168 ( 3.36%) | |
|
93 | 93 | lvl-0 : 4 ( 0.08%) |
|
94 |
lvl-1 : 1 |
|
|
95 |
lvl-2 : |
|
|
96 |
lvl-3 : |
|
|
97 |
lvl-4 : 3 |
|
|
98 |
deltas : 483 |
|
|
99 |
revision size : 5930 |
|
|
100 |
snapshot : |
|
|
101 |
lvl-0 : 804 |
|
|
102 |
lvl-1 : 1 |
|
|
103 |
lvl-2 : 1 |
|
|
104 |
lvl-3 : 1 |
|
|
105 |
lvl-4 : |
|
|
106 |
deltas : 53 |
|
|
94 | lvl-1 : 18 ( 0.36%) | |
|
95 | lvl-2 : 39 ( 0.78%) | |
|
96 | lvl-3 : 54 ( 1.08%) | |
|
97 | lvl-4 : 53 ( 1.06%) | |
|
98 | deltas : 4833 (96.64%) | |
|
99 | revision size : 59302280 | |
|
100 | snapshot : 5833942 ( 9.84%) | |
|
101 | lvl-0 : 804068 ( 1.36%) | |
|
102 | lvl-1 : 1378470 ( 2.32%) | |
|
103 | lvl-2 : 1608138 ( 2.71%) | |
|
104 | lvl-3 : 1222158 ( 2.06%) | |
|
105 | lvl-4 : 821108 ( 1.38%) | |
|
106 | deltas : 53468338 (90.16%) | |
|
107 | 107 | |
|
108 | 108 | chunks : 5001 |
|
109 | 109 | 0x78 (x) : 5001 (100.00%) |
|
110 |
chunks size : 5930 |
|
|
111 |
0x78 (x) : 5930 |
|
|
110 | chunks size : 59302280 | |
|
111 | 0x78 (x) : 59302280 (100.00%) | |
|
112 | 112 | |
|
113 | 113 | avg chain length : 17 |
|
114 | 114 | max chain length : 45 |
|
115 |
max chain reach : 2 |
|
|
115 | max chain reach : 22744720 | |
|
116 | 116 | compression ratio : 29 |
|
117 | 117 | |
|
118 | 118 | uncompressed data size (min/max/avg) : 346468 / 346472 / 346471 |
|
119 |
full revision size (min/max/avg) : 2009 |
|
|
120 |
inter-snapshot size (min/max/avg) : 11 |
|
|
121 |
level-1 (min/max/avg) : 1561 |
|
|
122 |
level-2 (min/max/avg) : 1 |
|
|
123 |
level-3 (min/max/avg) : 11 |
|
|
124 |
level-4 (min/max/avg) : 1 |
|
|
125 |
delta size (min/max/avg) : 10649 / 10 |
|
|
119 | full revision size (min/max/avg) : 200985 / 201050 / 201017 | |
|
120 | inter-snapshot size (min/max/avg) : 11598 / 163304 / 30669 | |
|
121 | level-1 (min/max/avg) : 15616 / 163304 / 76581 | |
|
122 | level-2 (min/max/avg) : 11602 / 86428 / 41234 | |
|
123 | level-3 (min/max/avg) : 11598 / 42390 / 22632 | |
|
124 | level-4 (min/max/avg) : 11603 / 19649 / 15492 | |
|
125 | delta size (min/max/avg) : 10649 / 105465 / 11063 | |
|
126 | 126 | |
|
127 |
deltas against prev : 416 |
|
|
128 |
where prev = p1 : 412 |
|
|
127 | deltas against prev : 4167 (86.22%) | |
|
128 | where prev = p1 : 4129 (99.09%) | |
|
129 | 129 | where prev = p2 : 0 ( 0.00%) |
|
130 |
other : |
|
|
131 |
deltas against p1 : 6 |
|
|
132 |
deltas against p2 : 2 |
|
|
130 | other : 38 ( 0.91%) | |
|
131 | deltas against p1 : 643 (13.30%) | |
|
132 | deltas against p2 : 23 ( 0.48%) | |
|
133 | 133 | deltas against other : 0 ( 0.00%) |
General Comments 0
You need to be logged in to leave comments.
Login now