Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
Increase ring-buffer size even more
Browse files Browse the repository at this point in the history
It seems, the most complex API, dfa-reporting, requires
an even higher value.

Reproduce this with
```
make dfareporting2d1-cli-cargo ARGS="build --no-default-features --features=with-syntex"
```
  • Loading branch information
Byron committed May 28, 2016
1 parent ee3eb39 commit 70dadef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntex_syntax/src/print/pp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ pub struct PrintStackElem {
const SIZE_INFINITY: isize = 0xffff;

pub fn mk_printer<'a>(out: Box<io::Write+'a>, linewidth: usize) -> Printer<'a> {
// Yes 10, it makes the ring buffers big enough to never
// Yes 55, it makes the ring buffers big enough to never
// fall behind.
let n: usize = 10 * linewidth;
let n: usize = 55 * linewidth;
debug!("mk_printer {}", linewidth);
let token = vec![Token::Eof; n];
let size = vec![0; n];
Expand Down

0 comments on commit 70dadef

Please sign in to comment.