parser performance improvements