Speed up line parsing for simple line layout (part I)