diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-11-09 10:35:45 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-11-09 10:35:45 +0000 |
commit | 15801c88fad38253b19ac2ea77e7597deab5fd6b (patch) | |
tree | 2dab8ab76792328b6c5376509d6b2e659ad19cf8 /src/libnix/db.cc | |
parent | d2e3a132fe6796b2ac038ccb20e7aa32afc1a85f (diff) |
* Turned the msg() and debug() functions into macros, since they
turned out to be a huge performance bottleneck (the text to printed
would always be evaluated, even when it was above the verbosity
level). This reduces fix-ng execution time by over 50%.
gprof(1) is very useful. :-)
Diffstat (limited to 'src/libnix/db.cc')
-rw-r--r-- | src/libnix/db.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libnix/db.cc b/src/libnix/db.cc index c498fab74..63ec2724f 100644 --- a/src/libnix/db.cc +++ b/src/libnix/db.cc @@ -202,7 +202,8 @@ void Database::open(const string & path) setAccessorCount(fdAccessors, 1); if (n != 0) { - msg(lvlTalkative, format("accessor count is %1%, running recovery") % n); + printMsg(lvlTalkative, + format("accessor count is %1%, running recovery") % n); /* Open the environment after running recovery. */ openEnv(env, path, DB_RECOVER); |