improve parser performance