class Arborist::GlobalDebug
- Arborist::GlobalDebug
- Reference
- Object
Defined in:
arborist.crClass Method Summary
- .decrement
- .disable!
- .enable(enable : Bool)
- .enable!
- .enabled?
- .increment
- .indent
- .prefix(prefix_str : String)
- .reset_indent
Macro Summary
-
puts(str)
Changing this logging from a function to a macro made a 10x performance improvement.
Class Method Detail
Macro Detail
macro 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.