File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: 26630187920a8b3f1b2f2d73f0172addd6c35ccd
5
+ refs/heads/try: 5ce3d35f4170ecbf6a0efbc3cd7cdcb451c79837
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ type chunk = {data: [u8], mut fill: uint};
8
8
type arena = { mut chunks : list:: list < @chunk > } ;
9
9
10
10
fn chunk ( size : uint ) -> @chunk {
11
- @{ data: vec:: from_elem ( size, 0u8 ) , mut fill: 0 u }
11
+ let mut v = [ ] ;
12
+ vec:: reserve ( v, size) ;
13
+ @{ data: v, mut fill: 0 u }
12
14
}
13
15
14
16
fn arena_with_size ( initial_size : uint ) -> arena {
You can’t perform that action at this time.
0 commit comments