Make self-closing parser faster