daemon-rewrite/parser: Improve parser's performance