Closed Blaisorblade closed 10 years ago
Why comment out both the calls to the log operations and their implementations? Wouldn't it be enough to comment out the calls?
Maybe we can use static variability to enable or disable logging at compile time, like everyone does :) The easiest thing would be to use #ifdef's in Control.Monad.Log, defining the macro via a cabal flag. Alternatively, we could use two variants of Control.Monad.Log that are linked into the program according to the cabal flag.
Why comment out both the calls to the log operations and their implementations? Wouldn't it be enough to comment out the calls?
Just because I just hacked this together quickly. Can fix :-).
I'm working on this right now.
See Blaisorblade/pts#2.
With profiling, this goes from 20 to 6 seconds. Without profiling, I've seen something like from 6 to 2 seconds.
Feel free to reenable this code if you figure out how to make it cheap.