Performance improvement on debug-text