slightly improve text parser perf (10%)