Don't flush the stream on each new line, when writing automata.

* src/tgbaalgos/neverclaim.cc, src/tgbaalgos/dotty.cc,
src/tgbaalgos/save.cc: Prefer '\n' over std::endl to speedup I/O.
* src/ltltest/genltl.cc (syntax): Use '\n' too, although it won't
make a big difference.
This commit is contained in:
Alexandre Duret-Lutz 2011-11-27 23:35:31 +01:00
parent ba3108f98d
commit 9c4adf1eb4
5 changed files with 54 additions and 52 deletions

View file

@ -47,9 +47,9 @@ namespace spot
void
start()
{
os_ << "digraph G {" << std::endl;
os_ << " 0 [label=\"\", style=invis, height=0]" << std::endl;
os_ << " 0 -> 1" << std::endl;
os_ << ("digraph G {\n"
" 0 [label=\"\", style=invis, height=0]\n"
" 0 -> 1\n");
}
void
@ -86,7 +86,7 @@ namespace spot
<< dd_->state_decl(automata_, s, n, si,
escape_str(automata_->format_state(s)),
accepting)
<< std::endl;
<< '\n';
}
void
@ -111,7 +111,7 @@ namespace spot
os_ << " " << in << " -> " << out << " "
<< dd_->link_decl(automata_, in_s, in, out_s, out, si,
escape_str(label))
<< std::endl;
<< '\n';
}
private: