class

Arborist::GlobalDebug

Inherits Reference / Object

Class methods

decrement
Source
disable!
Source
enable(enable : Bool)
Source
enable!
Source
enabled?
Source
increment
Source
indent
Source
prefix(prefix_str : String)
Source
reset_indent
Source

Macros

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.

Source