Replaced complete parser/lexer with a token stream instead of a complete array representation. Saved more then 100mb of ram for the bad case file - but no huge performance increases. (For small files it seems to be even slower)