Do not buffer stdout to save memory, just let it be output when needed