Improved the performance and memory usage of parsing individual selectors.