Arborist::GlobalDebug
Inherits Reference / Object
Class methods
decrement
Sourcedisable!
Sourceenable(enable : Bool)
Sourceenable!
Sourceenabled?
Sourceincrement
Sourceindent
Sourceprefix(prefix_str : String)
Sourcereset_indent
SourceMacros
puts(str)
Changing this logging from a function to a macro made a 10x performance improvement.
To see the change in the test suite, you may run tests like: NOLOG=true crystal spec
To see the change in the compiled binary, you may compile like: NOLOG=true ./build.sh
Without the NOLOG=true environment variable, GlobalDebug.puts behaves like normal, as if it were defined as a function.