Skip to content

Commit be3cb83

Browse files
committed
---
yaml --- r: 39244 b: refs/heads/incoming c: 4055001 h: refs/heads/master v: v3
1 parent e7a85ea commit be3cb83

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
9-
refs/heads/incoming: 3464f60c00b7bd95c9cf5e52040870a55fd4c1ed
9+
refs/heads/incoming: 40550013886d5da17b0be5e5103606cc8693defc
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/test/bench/shootout-mandelbrot.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl cmplx : ops::Mul<cmplx,cmplx> {
3333
}
3434

3535
impl cmplx : ops::Add<cmplx,cmplx> {
36-
pure fn add(x: &cmplx) -> cmplx {
36+
pure fn add(&self, x: &cmplx) -> cmplx {
3737
cmplx {
3838
re: self.re + (*x).re,
3939
im: self.im + (*x).im
@@ -145,7 +145,7 @@ fn writer(path: ~str, writech: comm::Chan<comm::Chan<line>>, size: uint)
145145
}
146146
else {
147147
debug!("S %u", aline.i);
148-
lines.insert(aline.i, aline.b);
148+
lines.insert(aline.i, copy aline.b); // FIXME: bad for perf
149149
};
150150
i += 1_u;
151151
}
@@ -160,7 +160,7 @@ fn main() {
160160
};
161161

162162
let path = if vec::len(args) < 4_u { ~"" }
163-
else { args[3] };
163+
else { copy args[3] }; // FIXME: bad for perf
164164

165165
let yieldevery = if vec::len(args) < 3_u { 10_u }
166166
else { uint::from_str(args[2]).get() };
@@ -170,8 +170,8 @@ fn main() {
170170

171171
let writep = comm::Port();
172172
let writech = comm::Chan(&writep);
173-
do task::spawn {
174-
writer(path, writech, size);
173+
do task::spawn |move path| {
174+
writer(copy path, writech, size);
175175
};
176176
let ch = comm::recv(writep);
177177
for uint::range(0_u, size) |j| {

0 commit comments

Comments
 (0)