optimizations based on feedback from profiler data
Merge pull request #584 from mojavelinux/parser-optimizations

optimizations based on feedback from profiler data