Replaced printf() by do_debug() statements ; Performances are better,
but still too low.