optimize parser for size