Optimized code QNameParser