Skip to content

Use BufWriter in fasta-redux for a nice speedup #28562

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 21, 2015
Merged

Use BufWriter in fasta-redux for a nice speedup #28562

merged 1 commit into from
Sep 21, 2015

Conversation

llogiq
Copy link
Contributor

@llogiq llogiq commented Sep 21, 2015

Since 1.3.0 the BufWriter has seen tremendous speedups. So when I use it in the shootout benchmarks, I see some nice speedup (which up to 1.2.0 was nixed by the pessimizations during initialization).

@rust-highfive
Copy link
Contributor

r? @pcwalton

(rust_highfive has picked a reviewer for you, use r? to override)

@bluss
Copy link
Member

bluss commented Sep 21, 2015

Nice. It's a bit weird, but it makes sense. Stdout is already line buffered, but a bigger / equal buffer will make writes pass through, so it's not really double buffering fortunately. This is issue #10279.

Looks like regex 1.30 is broken by lint changes in the benchmarks game by the way. Probably just needs a version bump.

@llogiq
Copy link
Contributor Author

llogiq commented Sep 21, 2015

@bluss Yeah. If I recall correctly, using a newer version also requires using the regex_syntax crate (I'm not sure when the split happened, though). I've set up an issue at teXitoi's repo.

@alexcrichton
Copy link
Member

@bors: r+ 78eee36

bors added a commit that referenced this pull request Sep 21, 2015
Since 1.3.0 the BufWriter has seen tremendous speedups. So when I use it in the shootout benchmarks, I see some nice speedup (which up to 1.2.0 was nixed by the pessimizations during initialization).
@bors
Copy link
Collaborator

bors commented Sep 21, 2015

⌛ Testing commit 78eee36 with merge 5120f4a...

@bors bors merged commit 78eee36 into rust-lang:master Sep 21, 2015
@llogiq llogiq deleted the shootout branch September 21, 2015 20:13
@brson brson added the relnotes Marks issues that should be documented in the release notes of the next release. label Sep 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
relnotes Marks issues that should be documented in the release notes of the next release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants