summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-08 02:49:36 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-08 02:49:36 -0400
commit6ca843dd6e3ca4c7bf39249dddd758b1a5d8a6d4 (patch)
tree0f86e0cf356cf35409f9b218ca84dcee4f9a92fc /main.cc
parentef0d32cd5d91966490694da97f36b023700d9787 (diff)
downloadfork-ledger-6ca843dd6e3ca4c7bf39249dddd758b1a5d8a6d4.tar.gz
fork-ledger-6ca843dd6e3ca4c7bf39249dddd758b1a5d8a6d4.tar.bz2
fork-ledger-6ca843dd6e3ca4c7bf39249dddd758b1a5d8a6d4.zip
Don't synchronize stdio with iostreams, since it's unnecessary. This can give
us a free speed bonus.
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.cc b/main.cc
index 8be24935..02a06f0c 100644
--- a/main.cc
+++ b/main.cc
@@ -447,6 +447,8 @@ int main(int argc, char * argv[], char * envp[])
std::auto_ptr<journal_t> journal;
try {
+ std::ios::sync_with_stdio(false);
+
#if DEBUG_LEVEL < BETA
ledger::do_cleanup = false;
#endif