mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Performance
- Removed "std::endl" in cases where the autoflush is only going to slow things down.
This commit is contained in:
parent
1d3aa891d6
commit
eb2cb99532
11 changed files with 78 additions and 109 deletions
|
@ -50,7 +50,7 @@ int main (int argc, char** argv)
|
|||
std::ofstream one ("./sensor.foo", std::ios_base::out | std::ios_base::app);
|
||||
if (one.good ())
|
||||
{
|
||||
one << "touch" << std::endl;
|
||||
one << "touch\n";
|
||||
one.close ();
|
||||
}
|
||||
|
||||
|
@ -65,7 +65,7 @@ int main (int argc, char** argv)
|
|||
std::ofstream two ("./sensor.foo", std::ios_base::out | std::ios_base::app);
|
||||
if (two.good ())
|
||||
{
|
||||
two << "touch" << std::endl;
|
||||
two << "touch\n";
|
||||
two.close ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue